From: Scott A. L. <sc...@sc...> - 2000-10-27 21:57:49
|
Okay, gang. I was able to fix a few bugs in my patches and get all the broken widgets (on the list provided by Rob) working again...with the exception of core.gui.scrollbar, which is giving me a strange error that doesn't appear in the other scrollbar-type widgets (??) So please take a moment and kindly re-test :-) Some of the problems were actually conflicting ID problems involving DynLayer. When you do this: function MyWidget(title){ } ... MyWidget.prototype=new DynLayer() Remember that the first parameter passed in your constructor will also be used as the ID of the widget, unless you tell it otherwise, like this: function MyWidget(title){ this.id = "MyWidget" + (MyWidget.Count++) } ... MyWidget.Count = 0 MyWidget.prototype=new DynLayer() This ensures that each widget gets a unique ID. Without it, two MyWidget object with the same 'title' will end up having the same ID, and the second one will overwrite the first in the all[] array when assigned. In my patches I've put a line in createElement that pops up an alert when two DynLayer-based objects have conflicting IDs in the same all[] collection. |