mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(cloudcmd) unshift -> map
This commit is contained in:
parent
f63a14aa18
commit
cb219ae64e
1 changed files with 6 additions and 2 deletions
|
|
@ -29,8 +29,12 @@ var CloudCmd;
|
|||
return lib + name;
|
||||
});
|
||||
|
||||
files.unshift(modules + 'promise-polyfill/Promise');
|
||||
files.unshift(modules + 'format-io/lib/format');
|
||||
files.concat([
|
||||
'promise-polyfill/Promise',
|
||||
'format-io/lib/format'
|
||||
].map(function(name) {
|
||||
return modules + name;
|
||||
}));
|
||||
|
||||
files = files.map(function(name) {
|
||||
return name + '.js';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue