From 5765025f8ff3ddee4967452b404471b81ccf2497 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 21 May 2013 09:22:39 -0400 Subject: [PATCH] minor changes --- lib/client/dom.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/client/dom.js b/lib/client/dom.js index 615f9200..cb45369d 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -931,7 +931,8 @@ var CloudCmd, Util, DOM, CloudFunc; }; }, CmdProto = function(){ - var CURRENT_FILE = 'current-file', + var Cmd = this, + CURRENT_FILE = 'current-file', SELECTED_FILE = 'selected-file', Title; @@ -1663,13 +1664,13 @@ var CloudCmd, Util, DOM, CloudFunc; * @pCurrent */ this.renameCurrent = function(pCurrentFile){ - if( !this.isCurrentFile(pCurrentFile) ) + if( !Cmd.isCurrentFile(pCurrentFile) ) pCurrentFile = null; - var lCurrent = pCurrentFile || this.getCurrentFile(), - lFrom = this.getCurrentName(lCurrent), + var lCurrent = pCurrentFile || Cmd.getCurrentFile(), + lFrom = Cmd.getCurrentName(lCurrent), lTo = prompt('Rename', lFrom) || lFrom, - lDirPath = this.getCurrentDirPath(); + lDirPath = Cmd.getCurrentDirPath(); if( !Util.strCmp(lFrom, lTo) ){ var lFiles = {