From 592925ffa3d8a5cf61ef37c99613ca12a7b5b52f Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 13 Jan 2015 10:56:06 -0500 Subject: [PATCH] refactor(edward) loadRemote --- lib/client/edward.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/client/edward.js b/lib/client/edward.js index 6439d20a..c363d73a 100644 --- a/lib/client/edward.js +++ b/lib/client/edward.js @@ -1,6 +1,6 @@ var join, ace, Util, DOM, MenuIO, CloudCmd; -(function(global, join, DOM, exec, load) { +(function(global, join, DOM, exec, load, loadRemote) { 'use strict'; if (typeof module !== 'undefined' && module.exports) @@ -173,7 +173,7 @@ var join, ace, Util, DOM, MenuIO, CloudCmd; function setMenu() { if (!Menu) { - DOM.loadRemote('menu', function(error) { + loadRemote('menu', function(error) { var position = CloudCmd.MousePosition, options = { beforeShow: function(params) { @@ -230,7 +230,7 @@ var join, ace, Util, DOM, MenuIO, CloudCmd; return dir + name + '.js'; })); - DOM.loadRemote('ace', function() { + loadRemote('ace', function() { load.parallel([url, css], callback); }); } @@ -238,4 +238,4 @@ var join, ace, Util, DOM, MenuIO, CloudCmd; return edward; } -})(this, join, DOM, Util.exec, DOM.load); +})(this, join, DOM, Util.exec, DOM.load, DOM.loadRemote);