Closed vishalpai closed 11 years ago
Hi,
Steps to reproduce the simplest use case:
Problem code in the function Node.prototype.removeNode = function ():
// remove all children for (var i=0;i<this.children.length;i++) { this.children[i].removeNode(); }
Fix:
// remove all children while(this.children.length > 0) { this.children[0].removeNode(); }
Best Regards, Vishal
Oh, right. That's doomed to fail.
Hi,
Steps to reproduce the simplest use case:
Problem code in the function Node.prototype.removeNode = function ():
Fix:
Best Regards, Vishal