chore(dom) Loader.ajax: isFunction -> exec

This commit is contained in:
coderaiser 2013-10-16 14:37:07 +00:00
parent 6afd64a7fe
commit f8c1813c77

View file

@ -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{