PageRenderTime 30ms CodeModel.GetById 20ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

/source/Plug-in/xajax/xajax_js/xajax_legacy.js

http://prosporous.googlecode.com/
JavaScript | 14 lines | 13 code | 1 blank | 0 comment | 2 complexity | cad5d527d6350bbf12cc951b6dd3d49a MD5 | raw file
 1
 2try{if('undefined'==typeof xajax)
 3throw{name:'SequenceError',message:'Error: xajax core was not detected, legacy module disabled.'}
 4if('undefined'==typeof xajax.legacy)
 5xajax.legacy={}
 6xajax.legacy.call=xajax.call;xajax.call=function(sFunction,objParameters){var oOpt={}
 7oOpt.parameters=objParameters;if(undefined!=xajax.loadingFunction){if(undefined==oOpt.callback)
 8oOpt.callback={}
 9oOpt.callback.onResponseDelay=xajax.loadingFunction;}
10if(undefined!=xajax.doneLoadingFunction){if(undefined==oOpt.callback)
11oOpt.callback={}
12oOpt.callback.onComplete=xajax.doneLoadingFunction;}
13return xajax.legacy.call(sFunction,oOpt);}
14xajax.legacy.isLoaded=true;}catch(e){alert(e.name+': '+e.message);}