diff --git a/lib/client/dom.js b/lib/client/dom.js index f476fdfa..eed2f535 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -699,9 +699,8 @@ var CloudCmd, Util, DOM, CloudFunc; /* If it's json - parse it as json */ if (lType && Util.isContainStr(lType, TYPE_JSON) ) lData = Util.parseJSON(lJqXHR.response) || lJqXHR.response; - - if ( Util.isFunction(p.success) ) - p.success(lData, lJqXHR.statusText, lJqXHR); + + Util.exec(p.success, lData, lJqXHR.statusText, lJqXHR); } /* file not found or connection lost */ else{