mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
feature(util) loadOnLoad: pop -> shift - change params order
This commit is contained in:
parent
20bf39be8d
commit
1fc64018b2
13 changed files with 33 additions and 33 deletions
|
|
@ -135,9 +135,9 @@ var Util, DOM, CloudFunc;
|
|||
|
||||
lCallBack = function() {
|
||||
Util.loadOnLoad([
|
||||
Util.retFunc(CloudCmd.route, location.hash),
|
||||
baseInit,
|
||||
initModules,
|
||||
baseInit,
|
||||
Util.retFunc(CloudCmd.route, location.hash),
|
||||
]);
|
||||
},
|
||||
lFunc = function(pCallBack) {
|
||||
|
|
|
|||
|
|
@ -23,12 +23,12 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
Loading = true;
|
||||
|
||||
Util.loadOnLoad([
|
||||
addListeners,
|
||||
CloudCmd.Socket,
|
||||
Console.show,
|
||||
load,
|
||||
CloudCmd.View,
|
||||
DOM.jqueryLoad,
|
||||
CloudCmd.View,
|
||||
load,
|
||||
Console.show,
|
||||
CloudCmd.Socket,
|
||||
addListeners,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,9 +25,9 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
|
|||
function init() {
|
||||
Loading = true;
|
||||
Util.loadOnLoad([
|
||||
Edit.show,
|
||||
load,
|
||||
CloudCmd.View
|
||||
CloudCmd.View,
|
||||
Edit.show,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ var CloudCmd, Util, DOM;
|
|||
|
||||
function init() {
|
||||
Util.loadOnLoad([
|
||||
Help.show,
|
||||
CloudCmd.View,
|
||||
Help.show,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,10 +27,10 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
Position = pPosition;
|
||||
|
||||
Util.loadOnLoad([
|
||||
Menu.show,
|
||||
setUploadToItemNames,
|
||||
DOM.jqueryLoad,
|
||||
load,
|
||||
DOM.jqueryLoad
|
||||
setUploadToItemNames,
|
||||
Menu.show
|
||||
]);
|
||||
|
||||
Events.addKey( lListener );
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dropbox, cb, Client;
|
|||
|
||||
function init(pCallBack){
|
||||
Util.loadOnLoad([
|
||||
Util.retExec(pCallBack),
|
||||
getUserData,
|
||||
load,
|
||||
DropBoxStore.login,
|
||||
load
|
||||
getUserData,
|
||||
Util.retExec(pCallBack)
|
||||
]);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ var CloudCmd, Util, DOM, $, filepicker;
|
|||
var FilePicker = function(pCallBack) {
|
||||
function init(pCallBack) {
|
||||
Util.loadOnLoad([
|
||||
load,
|
||||
Util.retExec(pCallBack),
|
||||
load
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -99,9 +99,9 @@ var CloudCmd, Util, DOM, gapi;
|
|||
|
||||
|
||||
GDrive.init = function(pCallBack){
|
||||
Util.loadOnLoad([
|
||||
Util.retExec(pCallBack),
|
||||
load
|
||||
Util.loadOnLoad([
|
||||
load,
|
||||
Util.retExec(pCallBack)
|
||||
]);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -141,16 +141,16 @@ var CloudCmd, Util, DOM, $, Github, cb;
|
|||
|
||||
GitHubStore.init = function(pCallBack){
|
||||
Util.loadOnLoad([
|
||||
Util.retExec(pCallBack),
|
||||
GitHubStore.getUserData,
|
||||
load,
|
||||
GitHubStore.autorize,
|
||||
load
|
||||
GitHubStore.getUserData,
|
||||
Util.retExec(pCallBack)
|
||||
]);
|
||||
|
||||
GitHubStore.callback = function(){
|
||||
Util.loadOnLoad([
|
||||
Util.retExec(pCallBack),
|
||||
GitHubStore.getUserData,
|
||||
Util.retExec(pCallBack)
|
||||
]);
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -66,10 +66,10 @@ var CloudCmd, Util, DOM, WL;
|
|||
}
|
||||
|
||||
SkyDrive.init = function(pCallBack){
|
||||
Util.loadOnLoad([
|
||||
Util.retExec(pCallBack),
|
||||
Util.loadOnLoad([
|
||||
load,
|
||||
auth,
|
||||
load
|
||||
Util.retExec(pCallBack)
|
||||
]);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -86,10 +86,10 @@ var CloudCmd, Util, DOM, VK;
|
|||
|
||||
|
||||
VKStorage.init = function(pCallBack){
|
||||
Util.loadOnLoad([
|
||||
Util.retExec(pCallBack),
|
||||
Util.loadOnLoad([
|
||||
load,
|
||||
auth,
|
||||
load
|
||||
Util.retExec(pCallBack)
|
||||
]);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -63,9 +63,9 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
lFunc = Util.retExec(View.show, null);
|
||||
|
||||
Util.loadOnLoad([
|
||||
lFunc,
|
||||
DOM.jqueryLoad,
|
||||
load,
|
||||
DOM.jqueryLoad
|
||||
lFunc
|
||||
]);
|
||||
|
||||
Events.addKey(listener);
|
||||
|
|
|
|||
|
|
@ -498,7 +498,7 @@
|
|||
*/
|
||||
this.loadOnLoad = function(funcs, data) {
|
||||
if (Util.isArray(funcs) && funcs.length) {
|
||||
var func = funcs.pop(),
|
||||
var func = funcs.shift(),
|
||||
callback = function(pData) {
|
||||
return Util.loadOnLoad(funcs, data);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue