/* DynAPI Distribution DynAPI base Object. Empty shell defining common properties and methods The DynAPI Distribution is distributed under the terms of the GNU LGPL license. */ DynObject = function() { this.setID("DynObject"+(DynObject.Count++)); this.isChild = false; this.created = false; this.parent = null; this.children = []; //added to counter inheritance bug (#425789) this.eventListeners = []; this.hasEventListeners = false; }; DynObject.prototype.getClass = function() { return this.constructor }; DynObject.prototype.setID = function(id) { if (this.id) delete DynObject.all[this.id]; this.id = id; DynObject.all[this.id] = this; }; DynObject.prototype.addChild = function(c) { if(c.isChild) c.parent.removeChild(c); c.isChild = true; c.parent = this; if(this.created) c.create() this.children[this.children.length] = c; return c; }; DynObject.prototype.removeChild = function(c) { var l = this.children.length; for(var i=0;i<\/script>'); else alert('include()\n\nThe following package could not be loaded:\n'+src+'\n\nmake sure you specified the correct path.'); } else document.write('