summaryrefslogtreecommitdiff
path: root/swat.obsolete/style/qooxdoo/widgets/managers/QxManager.js
diff options
context:
space:
mode:
Diffstat (limited to 'swat.obsolete/style/qooxdoo/widgets/managers/QxManager.js')
-rw-r--r--swat.obsolete/style/qooxdoo/widgets/managers/QxManager.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/swat.obsolete/style/qooxdoo/widgets/managers/QxManager.js b/swat.obsolete/style/qooxdoo/widgets/managers/QxManager.js
new file mode 100644
index 0000000000..6fd02f7f6a
--- /dev/null
+++ b/swat.obsolete/style/qooxdoo/widgets/managers/QxManager.js
@@ -0,0 +1,2 @@
+/* Copyright (c): 2002-2005 (Germany): United Internet, 1&1, GMX, Schlund+Partner, Alturo */
+function QxManager(){QxTarget.call(this);this._objects={};};QxManager.extend(QxTarget,"QxManager");proto.add=function(oObject){var h=oObject.toHash();if(this._objects[h]){this.debug("Already known:"+oObject);return false;};this._objects[h]=oObject;return true;};proto.remove=function(oObject){delete this._objects[oObject.toHash()];return true;};proto.has=function(oObject){return this._objects[oObject.toHash()]!=null;};proto.get=function(oObject){return this._objects[oObject.toHash()];};proto.dispose=function(){if(this.getDisposed()){return;};if(typeof this._objects!="undefined"){for(var i in this._objects){if(typeof this._objects[i]=="object")this._objects[i].dispose();delete this._objects[i];};delete this._objects;};QxTarget.prototype.dispose.call(this);}; \ No newline at end of file