1 function Sys$_ScriptLoader$loadScripts(scriptTimeout, allScriptsLoadedCallback, scriptLoadFailedCallback, scriptLoadTimeoutCallback) {
7 var e = Function._validateParams(arguments, [
8 {name: "scriptTimeout", type: Number, integer: true},
9 {name: "allScriptsLoadedCallback", type: Function, mayBeNull: true},
10 {name: "scriptLoadFailedCallback", type: Function, mayBeNull: true},
11 {name: "scriptLoadTimeoutCallback", type: Function, mayBeNull: true}
12 ]);
13 if (e) throw e;
14 if(this._loading) {
15 throw Error.invalidOperation(Sys.Res.scriptLoaderAlreadyLoading);
16 }
17 this._loading = true;
18 this._allScriptsLoadedCallback = allScriptsLoadedCallback;
19 this._scriptLoadFailedCallback = scriptLoadFailedCallback;
20 this._scriptLoadTimeoutCallback = scriptLoadTimeoutCallback;
21
22 this._loadScriptsInternal();
23 }