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

Unified Diff: ui/file_manager/gallery/js/mosaic_mode.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
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/viewport.js ('k') | ui/file_manager/gallery/js/slide_mode.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/mosaic_mode.js
diff --git a/ui/file_manager/gallery/js/mosaic_mode.js b/ui/file_manager/gallery/js/mosaic_mode.js
index ccf12536493ceed236812787cfcdf81a72b779a3..6e14073ec4e0e7a2a232556faa9ec17da2f27d2c 100644
--- a/ui/file_manager/gallery/js/mosaic_mode.js
+++ b/ui/file_manager/gallery/js/mosaic_mode.js
@@ -1284,10 +1284,10 @@ Mosaic.Column.prototype.getEdgeTileIndex_ = function(y, direction) {
* @return {Mosaic.Row} The row containing the tile with a given index.
*/
Mosaic.Column.prototype.getRowByTileIndex = function(index) {
- for (var r = 0; r !== this.rows_.length; r++)
+ for (var r = 0; r !== this.rows_.length; r++) {
if (this.rows_[r].hasTile(index))
return this.rows_[r];
-
+ }
return null;
};
@@ -1300,7 +1300,7 @@ Mosaic.Column.prototype.add = function(tile) {
var rowIndex = this.getNextRowIndex();
if (!this.newRow_)
- this.newRow_ = new Mosaic.Row(this.getNextTileIndex());
+ this.newRow_ = new Mosaic.Row(this.getNextTileIndex());
this.tiles_.push(tile);
this.newRow_.add(tile);
@@ -1770,8 +1770,9 @@ Mosaic.Tile.prototype.init = function() {
metadata,
undefined, // Media type.
ThumbnailLoader.UseEmbedded.USE_EMBEDDED,
- 2); // Preloaders have always higher priotity, so the preload images
- // are loaded as soon as possible.
+ // Preloaders have always higher priotity, so the preload images
+ // are loaded as soon as possible.
+ 2);
}
// Dimensions are always acquired from the metadata. For local files, it is
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/viewport.js ('k') | ui/file_manager/gallery/js/slide_mode.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698