From 039fcbb62f637fb6ae903cfd038dd1d5a4770c43 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 4 Apr 2014 10:18:49 -0400 Subject: [PATCH] fix(client) loadModule: path change to wrong after fail loading --- lib/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/client.js b/lib/client.js index 5b3a77f6..08cdd41a 100644 --- a/lib/client.js +++ b/lib/client.js @@ -114,11 +114,11 @@ var Util, DOM, CloudFunc; if (!CloudCmd[name]) { CloudCmd[name] = function(arg) { - path = CloudCmd.LIBDIRCLIENT + path; + var pathFull = CloudCmd.LIBDIRCLIENT + path; Util.exec(doBefore); - return DOM.jsload(path, func || + return DOM.jsload(pathFull, func || function() { var Proto = CloudCmd[name];