mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(client) loadModule: corrupted CloudCmd[name] on error
This commit is contained in:
parent
215a13872a
commit
5d363564a3
1 changed files with 2 additions and 2 deletions
|
|
@ -126,10 +126,10 @@ var Util, DOM, CloudFunc;
|
|||
Util.exec(doBefore);
|
||||
|
||||
return DOM.load.js(pathFull, func ||
|
||||
function() {
|
||||
function(error) {
|
||||
var Proto = CloudCmd[name];
|
||||
|
||||
if (Util.isFunction(Proto))
|
||||
if (!error && Util.isFunction(Proto))
|
||||
CloudCmd[name] = Util.applyConstructor(Proto, args);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue