feature(modules) add promise-polyfill

This commit is contained in:
coderaiser 2015-02-18 08:37:20 -05:00
parent 46a76d5412
commit 71bbcbfd96
10 changed files with 387 additions and 189 deletions

View file

@ -6,13 +6,13 @@ var CloudCmd;
CloudCmd = load;
function load(prefix) {
var lib = 'lib/',
var urlFiles,
lib = 'lib/',
client = 'client/',
files = [
'util',
'join',
'format',
'promise',
'cloudfunc',
client + 'dom',
client + 'events',
@ -27,9 +27,11 @@ var CloudCmd;
client + 'key'
].map(function(name) {
return lib + name + '.js';
}),
urlFiles = getJoinURL(files);
});
files.unshift('/modules/promise-polyfill/Promise.js');
urlFiles = getJoinURL(files);
if (!prefix)
prefix = '/cloudcmd';