#0: function anonymous() in <http://kshama/~jason/dynapi3x/src/api/dynlayer_base.js> line 57 #1: function anonymous() in <http://kshama/~jason/dynapi3x/src/api/dynlayer_base.js> line 145 #2: function anonymous() in <http://kshama/~jason/dynapi3x/src/api/dynlayer_base.js> line 102 #3: function anonymous() in <http://kshama/~jason/dynapi3x/src/api/dynlayer_base.js> line 122 #4: function anonymous() in <http://kshama/~jason/dynapi3x/src/api/dynlayer_base.js> line 100 #5: function anonymous() in <http://kshama/~jason/dynapi3x/src/api/dyndocument.js> line 147 #6: function anonymous() in <http://kshama/~jason/dynapi3x/src/api/dyndocument.js> line 153 #7: function anonymous() in <http://kshama/~jason/dynapi3x/src/dynapi.js> line 109
#0 var p = dynapi.setPrototype('DynLayer','DynElement'); 49 p._adjustSize=function(){ - 50 var aw=this._aSzW; - 51 var ah=this._aSzW; - 52 if(this._created && (aw||ah)) { - 53 var i,c,w=0,h=0; 54 // get furthest child - 55 for (i=0;i<this.children.length;i++){ - 56 c=this.children[i]; - 57 if(w<(c.x+c.w)) w=c.x+c.w; - 58 if(h<(c.y+c.h)) h=c.y+c.h; 59 } children has length 5, but no element 0, only 1,2,3 and 4, most probably because we delete the array element in destroy all children p.destroyAllChildren = function() { - 146 for (var i=0;i<this.children.length;i++) { - 147 this.children[i]._destroy(); >> 148 delete this.children[i]; 149 } - 150 this.children = []; 151 }; ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/