summaryrefslogtreecommitdiff
path: root/lib/dojo/OpenAjax.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-18 10:26:24 +0400
committerAndrew Dolgov <[email protected]>2013-03-18 10:26:26 +0400
commitf0cfe83e3725f9a3928da97a6e3085e79cb25309 (patch)
tree4b0af188defaa807c7bc6ff3a101b41c9166c463 /lib/dojo/OpenAjax.js
parent9a2885da170ffd64358b99194095851a2d09c1b6 (diff)
upgrade dojo to 1.8.3 (refs #570)
Diffstat (limited to 'lib/dojo/OpenAjax.js')
-rw-r--r--lib/dojo/OpenAjax.js28
1 files changed, 13 insertions, 15 deletions
diff --git a/lib/dojo/OpenAjax.js b/lib/dojo/OpenAjax.js
index 0733641ac..0b3c8918b 100644
--- a/lib/dojo/OpenAjax.js
+++ b/lib/dojo/OpenAjax.js
@@ -21,13 +21,12 @@
// prevent re-definition of the OpenAjax object
if(!window["OpenAjax"]){
OpenAjax = new function(){
- // summary: the OpenAjax hub
- // description: see http://www.openajax.org/member/wiki/OpenAjax_Hub_Specification
+ // summary:
+ // the OpenAjax hub
+ // description:
+ // see http://www.openajax.org/member/wiki/OpenAjax_Hub_Specification
- var t = true;
- var f = false;
- var g = window;
- var libs;
+ var libs = {};
var ooh = "org.openajax.hub.";
var h = {};
@@ -36,7 +35,6 @@ if(!window["OpenAjax"]){
h.implVersion = "0.6";
h.specVersion = "0.6";
h.implExtraData = {};
- var libs = {};
h.libraries = libs;
h.registerLibrary = function(prefix, nsURL, version, extra){
@@ -99,10 +97,8 @@ if(!window["OpenAjax"]){
}
if(typeof tree.c[token] == "undefined"){
tree.c[token] = { c: {}, s: [] };
- this._subscribe(tree.c[token], path, index + 1, sub);
- }else{
- this._subscribe(tree.c[token], path, index + 1, sub);
}
+ this._subscribe(tree.c[token], path, index + 1, sub);
}
};
@@ -158,7 +154,7 @@ if(!window["OpenAjax"]){
else{
var callbacks = tree.s;
var max = callbacks.length;
- for(var i = 0; i < max; i++)
+ for(var i = 0; i < max; i++){
if(sid == callbacks[i].sid){
if(this._pubDepth > 0){
callbacks[i].cb = null;
@@ -168,14 +164,15 @@ if(!window["OpenAjax"]){
callbacks.splice(i, 1);
return;
}
+ }
}
}
};
+
// The following function is provided for automatic testing purposes.
// It is not expected to be deployed in run-time OpenAjax Hub implementations.
- h.reinit = function()
- {
- for (var lib in OpenAjax.hub.libraries) {
+ 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", {});
@@ -186,8 +183,9 @@ if(!window["OpenAjax"]){
OpenAjax._cleanup = [];
OpenAjax._subIndex = 0;
OpenAjax._pubDepth = 0;
- }
+ };
};
+
// Register the OpenAjax Hub itself as a library.
OpenAjax.hub.registerLibrary("OpenAjax", "http://openajax.org/hub", "0.6", {});