refactor(dom) getCurrentFileContent

This commit is contained in:
coderaiser 2014-05-13 10:36:20 -04:00
parent 234eafcd37
commit f81a84d575

View file

@ -973,9 +973,9 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
*/
this.getCurrentFileContent = function(pParams, currentFile) {
var ret,
currentFile = currentFile ? currentFile : this.getCurrentFile(),
current = currentFile || this.getCurrentFile(),
lParams = pParams ? pParams : {},
lPath = this.getCurrentPath(currentFile),
lPath = this.getCurrentPath(current),
lErrorWas = pParams.error,
lError = function(jqXHR) {
Util.exec(lErrorWas);
@ -987,7 +987,6 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
lParams.error = lError;
if (this.isCurrentIsDir(currentFile))
lPath += '?json';
else if (!lParams.dataType)