Check your widget code. There should be a series of lines in the code
that read something like this:
function Widget(){
...
this.id = "WidgetType" + (Widget.count++)
...
}
Widget.count = 0
These lines are supposed to generate a unique ID for each widget. Some
of the earlier IBS and WidgetX widgets were missing these lines.
If these lines are missing, the Widget code will take the first argument
you pass in the constructor and use it as the ID (this is because
DynLayer is set up to take the first argument as the ID, and since all
widgets are now based off DynLayer, they will too). So if you have more
than one widget with the same value for the first argument, you would
have conflicting IDs.
Does that make sense?
scottandrew
|