mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
refactor(util) loadOnLoad
This commit is contained in:
parent
21b11d4485
commit
24557d3d48
1 changed files with 3 additions and 2 deletions
|
|
@ -454,9 +454,10 @@
|
|||
* @param funcs {Array} - array of functions
|
||||
*/
|
||||
this.loadOnLoad = function(funcs) {
|
||||
var func, callback;
|
||||
var func, callback,
|
||||
isArray = Util.isArray(funcs);
|
||||
|
||||
if (Util.isArray(funcs)) {
|
||||
if (isArray) {
|
||||
func = funcs.shift();
|
||||
|
||||
callback = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue