/* Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!window["OpenAjax"]){ OpenAjax=new function(){ var t=true; var f=false; var g=window; var _1; var _2="org.openajax.hub."; var h={}; this.hub=h; h.implementer="http://openajax.org"; h.implVersion="0.6"; h.specVersion="0.6"; h.implExtraData={}; var _1={}; h.libraries=_1; h.registerLibrary=function(_3,_4,_5,_6){ _1[_3]={prefix:_3,namespaceURI:_4,version:_5,extraData:_6}; this.publish(_2+"registerLibrary",_1[_3]); }; h.unregisterLibrary=function(_7){ this.publish(_2+"unregisterLibrary",_1[_7]); delete _1[_7]; }; h._subscriptions={c:{},s:[]}; h._cleanup=[]; h._subIndex=0; h._pubDepth=0; h.subscribe=function(_8,_9,_a,_b,_c){ if(!_a){ _a=window; } var _d=_8+"."+this._subIndex; var _e={scope:_a,cb:_9,fcb:_c,data:_b,sid:this._subIndex++,hdl:_d}; var _f=_8.split("."); this._subscribe(this._subscriptions,_f,0,_e); return _d; }; h.publish=function(_10,_11){ var _12=_10.split("."); this._pubDepth++; this._publish(this._subscriptions,_12,0,_10,_11); this._pubDepth--; if((this._cleanup.length>0)&&(this._pubDepth==0)){ for(var i=0;i0){ _22[i].cb=null; this._cleanup.push(_22[i]); }else{ _22.splice(i,1); } return; } } } } }; h.reinit=function(){ for(var lib in OpenAjax.hub.libraries){ delete OpenAjax.hub.libraries[lib]; } OpenAjax.hub.registerLibrary("OpenAjax","http://openajax.org/hub","0.6",{}); delete OpenAjax._subscriptions; OpenAjax._subscriptions={c:{},s:[]}; delete OpenAjax._cleanup; OpenAjax._cleanup=[]; OpenAjax._subIndex=0; OpenAjax._pubDepth=0; }; }; OpenAjax.hub.registerLibrary("OpenAjax","http://openajax.org/hub","0.6",{}); }