| 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_();
|
|
|