// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-'use strict';
-
/**
* Base item of NavigationListModel. Should not be created directly.
* @param {string} label Label.
/**
* A navigation list model. This model combines the 2 lists.
* @param {VolumeManagerWrapper} volumeManager VolumeManagerWrapper instance.
- * @param {cr.ui.ArrayDataModel} shortcutListModel The list of folder shortcut.
+ * @param {(cr.ui.ArrayDataModel|FolderShortcutsDataModel)} shortcutListModel
+ * The list of folder shortcut.
* @constructor
* @extends {cr.EventTarget}
*/
this.shortcutList_ = [];
for (var i = 0; i < this.shortcutListModel_.length; i++) {
- var shortcutEntry = this.shortcutListModel_.item(i);
+ var shortcutEntry = /** @type {Entry} */ (this.shortcutListModel_.item(i));
var volumeInfo = this.volumeManager_.getVolumeInfo(shortcutEntry);
this.shortcutList_.push(entryToModelItem(shortcutEntry));
}