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

Unified Diff: ui/file_manager/file_manager/foreground/js/file_selection.js

Issue 651403002: Fix trivial type-check errors in file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and correct a comment. Created 6 years, 2 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/file_manager/foreground/js/file_selection.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_selection.js b/ui/file_manager/file_manager/foreground/js/file_selection.js
index c236acdb99d610965d49f334c3396bcb9cc9888a..ef3ff250c09ce6325ffe8e1559f79a8a60167da3 100644
--- a/ui/file_manager/file_manager/foreground/js/file_selection.js
+++ b/ui/file_manager/file_manager/foreground/js/file_selection.js
@@ -29,7 +29,8 @@ function FileSelection(fileManager, indexes) {
// Synchronously compute what we can.
for (var i = 0; i < this.indexes.length; i++) {
- var entry = fileManager.getFileList().item(this.indexes[i]);
+ var entry = /** @type {!Entry} */
+ (fileManager.getFileList().item(this.indexes[i]));
if (!entry)
continue;
@@ -211,10 +212,8 @@ FileSelectionHandler.IMAGE_HOVER_PREVIEW_SIZE = 200;
/**
* Update the UI when the selection model changes.
- *
- * @param {Event} event The change event.
*/
-FileSelectionHandler.prototype.onFileSelectionChanged = function(event) {
+FileSelectionHandler.prototype.onFileSelectionChanged = function() {
var indexes =
this.fileManager_.getCurrentList().selectionModel.selectedIndexes;
if (this.selection) this.selection.cancelComputing_();

Powered by Google App Engine
This is Rietveld 408576698