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

Side by Side Diff: ui/file_manager/gallery/js/ribbon.js

Issue 676633002: Remove file-level 'use strict' from file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « ui/file_manager/gallery/js/mosaic_mode.js ('k') | ui/file_manager/gallery/js/slide_mode.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 'use strict';
6
7 /** 5 /**
8 * Scrollable thumbnail ribbon at the bottom of the Gallery in the Slide mode. 6 * Scrollable thumbnail ribbon at the bottom of the Gallery in the Slide mode.
9 * 7 *
10 * @param {Document} document Document. 8 * @param {Document} document Document.
11 * @param {cr.ui.ArrayDataModel} dataModel Data model. 9 * @param {cr.ui.ArrayDataModel} dataModel Data model.
12 * @param {cr.ui.ListSelectionModel} selectionModel Selection model. 10 * @param {cr.ui.ListSelectionModel} selectionModel Selection model.
13 * @return {Element} Ribbon element. 11 * @return {Element} Ribbon element.
14 * @constructor 12 * @constructor
15 */ 13 */
16 function Ribbon(document, dataModel, selectionModel) { 14 function Ribbon(document, dataModel, selectionModel) {
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 * @param {string} oldUrl Old url. 372 * @param {string} oldUrl Old url.
375 * @param {string} newUrl New url. 373 * @param {string} newUrl New url.
376 * @private 374 * @private
377 */ 375 */
378 Ribbon.prototype.remapCache_ = function(oldUrl, newUrl) { 376 Ribbon.prototype.remapCache_ = function(oldUrl, newUrl) {
379 if (oldUrl != newUrl && (oldUrl in this.renderCache_)) { 377 if (oldUrl != newUrl && (oldUrl in this.renderCache_)) {
380 this.renderCache_[newUrl] = this.renderCache_[oldUrl]; 378 this.renderCache_[newUrl] = this.renderCache_[oldUrl];
381 delete this.renderCache_[oldUrl]; 379 delete this.renderCache_[oldUrl];
382 } 380 }
383 }; 381 };
OLDNEW
« no previous file with comments | « ui/file_manager/gallery/js/mosaic_mode.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