Fix strange error in production build

This commit is contained in:
Szymon Nowak 2015-01-13 11:26:25 +01:00
parent 6b25919a91
commit bb7f4f823d

View File

@ -117,7 +117,7 @@ File.prototype.save = function () {
a.addEventListener('click', function () {
// Remove file entry from filesystem.
setTimeout(function () {
self.remove().then(self._reset);
self.remove().then(self._reset.bind(self));
}, 100); // Hack, but otherwise browser doesn't save the file at all.
a.parentNode.removeChild(a);