1 function Sys$_ScriptLoader$_scriptLoadedHandler(scriptElement, loaded) {
2 if(loaded && this._currentTask._notified) {
3 if(this._currentTask._notified > 1) {
4 this._raiseError(true);
5 }
6 else {
7 Array.add(Sys._ScriptLoader._getLoadedScripts(), scriptElement.src);
8 this._currentTask.dispose();
9 this._currentTask = null;
10 this._loadScriptsInternal();
11 }
12 }
13 else {
14 this._raiseError(false);
15 }
16 }