Commit 94c654c8 authored by hirono@chromium.org's avatar hirono@chromium.org

Files.app: Make the onDirectoryAction method private.

This method is used just internally.

BUG=none
TEST=manually

Review URL: https://chromiumcodereview.appspot.com/23819002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220568 0039d316-1c4b-4281-b951-d872f2087c98
parent 6209d66a
......@@ -2304,7 +2304,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
var entry = selection.entries[0];
if (entry.isDirectory) {
this.onDirectoryAction(entry);
this.onDirectoryAction_(entry);
} else {
this.dispatchSelectionAction_();
}
......@@ -2417,8 +2417,9 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
*
* @param {DirectoryEntry} entry Directory entry to which directory should be
* changed.
* @private
*/
FileManager.prototype.onDirectoryAction = function(entry) {
FileManager.prototype.onDirectoryAction_ = function(entry) {
return this.directoryModel_.changeDirectory(entry.fullPath);
};
......@@ -3095,7 +3096,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
this.dialogType != DialogType.SELECT_FOLDER &&
this.dialogType != DialogType.SELECT_UPLOAD_FOLDER) {
event.preventDefault();
this.onDirectoryAction(selection.entries[0]);
this.onDirectoryAction_(selection.entries[0]);
} else if (this.dispatchSelectionAction_()) {
event.preventDefault();
}
......@@ -3776,7 +3777,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
var entry = selectedItem.entry;
// If the entry is a directory, just change the directory.
if (entry.isDirectory) {
this.onDirectoryAction(entry);
this.onDirectoryAction_(entry);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment