From: Robert R. <rra...@ya...> - 2000-11-05 06:55:11
|
I've updated the dynlayer and dyndocument so that the recreateall will actually work. The biggest pain was adding children of children to the all array in the addChild method. So I added a method addChildID that should fix the problem. When a dynlayer thats knows its dyndoc or a dyndocument itself calls addchild, then that child and all of its children are added to the .all and .allID arrays. I've attached my dynlayer and dyndocument files. Please let me know of any bugs/improvements because it hasn't been fully tested yet. Also, the method calls like oncreate that are hard coded into the dynlayer need to be removed. Like: if (this.onCreate) { this.onCreate() } //<- The only problem is that they are used in some of the widgets. So if we are going to remove these, everyone should make sure their widgets use the eventlisteners instead. Also, could someone tell me the purpose of the .all array? I know we need the allID array, but the all array I just don't understand. \\Robert -- |