From: Richard B. <ric...@us...> - 2001-11-05 00:13:43
|
Update of /cvsroot/dynapi/dynapi/src In directory usw-pr-cvs1:/tmp/cvs-serv25719 Modified Files: dynapi.js Log Message: added line 14+15 to counter inheritance bug (#425789) Index: dynapi.js =================================================================== RCS file: /cvsroot/dynapi/dynapi/src/dynapi.js,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -r1.41 -r1.42 *** dynapi.js 2001/08/13 23:17:46 1.41 --- dynapi.js 2001/11/05 00:13:40 1.42 *************** *** 11,18 **** this.parent = null; this.children = []; }; 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; --- 11,21 ---- 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; |