Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1095)

Unified Diff: chrome/browser/resources/file_manager/js/image_editor/commands.js

Issue 12212127: [cleanup] Files.app: Remove Function declarations within blocks #3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/image_editor/exif_encoder.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/image_editor/commands.js
diff --git a/chrome/browser/resources/file_manager/js/image_editor/commands.js b/chrome/browser/resources/file_manager/js/image_editor/commands.js
index 38cd7636c0ffb8f0c9842b1df6c8558c662fae15..022701248b473fc89b2c7d29a4add7dcfc5b35fe 100644
--- a/chrome/browser/resources/file_manager/js/image_editor/commands.js
+++ b/chrome/browser/resources/file_manager/js/image_editor/commands.js
@@ -184,13 +184,13 @@ CommandQueue.prototype.undo = function() {
} else {
this.currentImage_ = this.baselineImage_;
- function replay(index) {
+ var replay = function(index) {
if (index < self.undo_.length)
self.doExecute_(self.undo_[index], {}, replay.bind(null, index + 1));
else {
complete();
}
- }
+ };
replay(0);
}
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/image_editor/exif_encoder.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698