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

Unified Diff: ui/file_manager/gallery/js/image_editor/image_util.js

Issue 571453002: Correct indentation, JSDoc, etc... to comply with closure linter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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: ui/file_manager/gallery/js/image_editor/image_util.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_util.js b/ui/file_manager/gallery/js/image_editor/image_util.js
index 6fd3cff31e4f568d6c47656567a5c8edbdeab2a2..2d1d6ec935eb327fd106e87922099626b8f90c9d 100644
--- a/ui/file_manager/gallery/js/image_editor/image_util.js
+++ b/ui/file_manager/gallery/js/image_editor/image_util.js
@@ -136,7 +136,7 @@ function Rect() {
return;
}
console.error('Invalid Rect constructor arguments:',
- Array.apply(null, arguments));
+ Array.apply(null, arguments));
}
Rect.prototype = {
@@ -440,7 +440,7 @@ ImageUtil.ImageLoader = function(document) {
* TODO(mtomasz): Simplify, or even get rid of this class and merge with the
* ThumbnaiLoader class.
*
- * @param {FileEntry} entry Image entry to be loaded.
+ * @param {Gallery.Item} item Item representing the image to be loaded.
* @param {function(HTMLCanvasElement, string=)} callback Callback to be
* called when loaded. The second optional argument is an error identifier.
* @param {number=} opt_delay Load delay in milliseconds, useful to let the
@@ -493,7 +493,7 @@ ImageUtil.ImageLoader.prototype.load = function(item, callback, opt_delay) {
// Load the image directly. The query parameter is workaround for
// crbug.com/379678, which force to update the contents of the image.
- this.image_.src = entry.toURL() + "?nocache=" + Date.now();
+ this.image_.src = entry.toURL() + '?nocache=' + Date.now();
}.bind(this);
// Loads the image. If already loaded, then forces a reload.
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/image_transform.js ('k') | ui/file_manager/gallery/js/image_editor/image_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698