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

Unified Diff: ui/webui/resources/js/cr/ui/list_selection_model.js

Issue 512003002: Revert of Revert "Typecheck JS files for chrome://extensions" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/webui/resources/js/cr/ui/list_selection_controller.js ('k') | ui/webui/resources/webui_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/cr/ui/list_selection_model.js
diff --git a/ui/webui/resources/js/cr/ui/list_selection_model.js b/ui/webui/resources/js/cr/ui/list_selection_model.js
index 897911955d1d6f7e96bfe05fdc445116d216adfa..60f4106cce0d13ffaade2e9d742a0a6e55da3b40 100644
--- a/ui/webui/resources/js/cr/ui/list_selection_model.js
+++ b/ui/webui/resources/js/cr/ui/list_selection_model.js
@@ -11,7 +11,7 @@
* @param {number=} opt_length The number items in the selection.
*
* @constructor
- * @extends {!cr.EventTarget}
+ * @extends {cr.EventTarget}
*/
function ListSelectionModel(opt_length) {
this.length_ = opt_length || 0;
@@ -100,7 +100,7 @@
/**
* Returns the nearest selected index or -1 if no item selected.
* @param {number} index The origin index.
- * @type {number}
+ * @return {number}
* @private
*/
getNearestSelectedIndex_: function(index) {
@@ -163,7 +163,7 @@
unselectAll: function() {
this.beginChange();
for (var i in this.selectedIndexes_) {
- this.setIndexSelected(i, false);
+ this.setIndexSelected(+i, false);
}
this.endChange();
},
« no previous file with comments | « ui/webui/resources/js/cr/ui/list_selection_controller.js ('k') | ui/webui/resources/webui_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698