OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * Scrollable thumbnail ribbon at the bottom of the Gallery in the Slide mode. | 8 * Scrollable thumbnail ribbon at the bottom of the Gallery in the Slide mode. |
9 * | 9 * |
10 * @param {Document} document Document. | 10 * @param {Document} document Document. |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 * @param {string} oldUrl Old url. | 357 * @param {string} oldUrl Old url. |
358 * @param {string} newUrl New url. | 358 * @param {string} newUrl New url. |
359 * @private | 359 * @private |
360 */ | 360 */ |
361 Ribbon.prototype.remapCache_ = function(oldUrl, newUrl) { | 361 Ribbon.prototype.remapCache_ = function(oldUrl, newUrl) { |
362 if (oldUrl != newUrl && (oldUrl in this.renderCache_)) { | 362 if (oldUrl != newUrl && (oldUrl in this.renderCache_)) { |
363 this.renderCache_[newUrl] = this.renderCache_[oldUrl]; | 363 this.renderCache_[newUrl] = this.renderCache_[oldUrl]; |
364 delete this.renderCache_[oldUrl]; | 364 delete this.renderCache_[oldUrl]; |
365 } | 365 } |
366 }; | 366 }; |
OLD | NEW |