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

Unified Diff: ui/file_manager/audio_player/elements/track_list.js

Issue 1015463006: [Audio Player] Cleanup the code along with closure compiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years, 9 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/audio_player/elements/track_list.js
diff --git a/ui/file_manager/audio_player/elements/track_list.js b/ui/file_manager/audio_player/elements/track_list.js
index 0e4508aac9463e20fc0bfeb1e9785f7aaf8d97e2..0f14416c13a729cd39e2693ecd992ba4e831e7f7 100644
--- a/ui/file_manager/audio_player/elements/track_list.js
+++ b/ui/file_manager/audio_player/elements/track_list.js
@@ -5,7 +5,13 @@
(function() {
'use strict';
- Polymer('track-list', {
+ /**
+ * @constructor
+ * @extends {PolymerElement}
+ */
+ var TrackListElement = function() {};
+
+ TrackListElement.prototype = {
/**
* Initializes an element. This method is called automatically when the
* element is ready.
@@ -106,8 +112,8 @@
/**
* Invoked when 'tracks' property is changed.
- * @param {Array.<TrackInfo>} oldValue Old value.
- * @param {Array.<TrackInfo>} newValue New value.
+ * @param {Array.<AudioPlayer.TrackInfo>} oldValue Old value.
+ * @param {Array.<AudioPlayer.TrackInfo>} newValue New value.
*/
tracksChanged: function(oldValue, newValue) {
// Note: Sometimes both oldValue and newValue are null though the actual
@@ -260,7 +266,7 @@
/**
* Returns the current track.
- * @param {AudioPlayer.TrackInfo} track TrackInfo of the current track.
+ * @return {AudioPlayer.TrackInfo} track TrackInfo of the current track.
*/
getCurrentTrack: function() {
if (this.tracks.length === 0)
@@ -304,5 +310,7 @@
return newTrackIndex;
},
- }); // Polymer('track-list') block
+ }; // TrackListElement.prototype for 'track-list'
+
+ Polymer('track-list', TrackListElement.prototype);
})(); // Anonymous closure
« no previous file with comments | « ui/file_manager/audio_player/elements/control_panel.js ('k') | ui/file_manager/audio_player/elements/volume_controller.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698