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

Unified Diff: chrome/browser/resources/file_manager/js/image_editor/image_view.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
Index: chrome/browser/resources/file_manager/js/image_editor/image_view.js
diff --git a/chrome/browser/resources/file_manager/js/image_editor/image_view.js b/chrome/browser/resources/file_manager/js/image_editor/image_view.js
index af4281583200ec8c4120a5ab4dd99ecf745e2dc8..e6fd35684636197b0989f3daf49281cc27f5844d 100644
--- a/chrome/browser/resources/file_manager/js/image_editor/image_view.js
+++ b/chrome/browser/resources/file_manager/js/image_editor/image_view.js
@@ -328,12 +328,12 @@ ImageView.prototype.load = function(url, metadata, effect,
if (displayCallback) displayCallback();
}
- function onVideoLoad(error) {
+ var onVideoLoad = function(error) {
video.removeEventListener('loadedmetadata', onVideoLoadSuccess);
video.removeEventListener('error', onVideoLoadError);
displayMainImage(ImageView.LOAD_TYPE_VIDEO_FILE, videoPreview, video,
error);
- }
+ };
var onVideoLoadError = onVideoLoad.bind(this, 'VIDEO_ERROR');
var onVideoLoadSuccess = onVideoLoad.bind(this, null);

Powered by Google App Engine
This is Rietveld 408576698