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

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

Issue 1408533002: Turn on verbose flag for compiling file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use type cast for createElement, fix indent. Created 5 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/navigation_list_model.js
diff --git a/ui/file_manager/file_manager/foreground/js/navigation_list_model.js b/ui/file_manager/file_manager/foreground/js/navigation_list_model.js
index a817289675397e7d046cd652602d7ce026a9a2b6..af85f01aa6c77c71e9e43b68cfba9489fdf5095e 100644
--- a/ui/file_manager/file_manager/foreground/js/navigation_list_model.js
+++ b/ui/file_manager/file_manager/foreground/js/navigation_list_model.js
@@ -288,7 +288,7 @@ NavigationListModel.prototype = {
/**
* Returns the item at the given index.
* @param {number} index The index of the entry to get.
- * @return {NavigationModelItem} The item at the given index.
+ * @return {NavigationModelItem|undefined} The item at the given index.
*/
NavigationListModel.prototype.item = function(index) {
if (index < this.volumeList_.length)
@@ -297,6 +297,7 @@ NavigationListModel.prototype.item = function(index) {
return this.shortcutList_[index - this.volumeList_.length];
if (index === this.length_() - 1)
return this.menuModel_;
+ return undefined;
};
/**

Powered by Google App Engine
This is Rietveld 408576698