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 60f4106cce0d13ffaade2e9d742a0a6e55da3b40..897911955d1d6f7e96bfe05fdc445116d216adfa 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 @@ cr.define('cr.ui', function() { |
* @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 @@ cr.define('cr.ui', function() { |
/** |
* Returns the nearest selected index or -1 if no item selected. |
* @param {number} index The origin index. |
- * @return {number} |
+ * @type {number} |
* @private |
*/ |
getNearestSelectedIndex_: function(index) { |
@@ -163,7 +163,7 @@ cr.define('cr.ui', function() { |
unselectAll: function() { |
this.beginChange(); |
for (var i in this.selectedIndexes_) { |
- this.setIndexSelected(+i, false); |
+ this.setIndexSelected(i, false); |
} |
this.endChange(); |
}, |