OLD | NEW |
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 (function() { | 5 (function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 Polymer('track-list', { | 8 Polymer('track-list', { |
9 /** | 9 /** |
10 * Initializes an element. This method is called automatically when the | 10 * Initializes an element. This method is called automatically when the |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 | 288 |
289 var newTrackIndex = this.playOrder[newPlayOrder]; | 289 var newTrackIndex = this.playOrder[newPlayOrder]; |
290 console.assert( | 290 console.assert( |
291 (0 <= newTrackIndex && newTrackIndex < this.tracks.length), | 291 (0 <= newTrackIndex && newTrackIndex < this.tracks.length), |
292 'Insufficient TrackList.playOrder. New Play Order: ' + newPlayOrder); | 292 'Insufficient TrackList.playOrder. New Play Order: ' + newPlayOrder); |
293 | 293 |
294 return newTrackIndex; | 294 return newTrackIndex; |
295 }, | 295 }, |
296 }); // Polymer('track-list') block | 296 }); // Polymer('track-list') block |
297 })(); // Anonymous closure | 297 })(); // Anonymous closure |
OLD | NEW |