From: Richard B. <ric...@us...> - 2001-11-05 17:47:58
|
Update of /cvsroot/dynapi/dynapi/src In directory usw-pr-cvs1:/tmp/cvs-serv13110 Modified Files: dynapi.js Log Message: updated flagprecreate to prevent multiple onprecreate events fireing. Index: dynapi.js =================================================================== RCS file: /cvsroot/dynapi/dynapi/src/dynapi.js,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -r1.43 -r1.44 *** dynapi.js 2001/11/05 16:45:49 1.43 --- dynapi.js 2001/11/05 17:47:55 1.44 *************** *** 59,65 **** --- 59,67 ---- }; DynObject.prototype.flagPrecreate = function() { + if (this.precreated) return; var l=this.children.length; for (var i=0; i<l; i++) this.children[i].flagPrecreate(); this.invokeEvent('precreate'); + this.precreated=true; }; DynObject.prototype.del = function() { |