ESRI Identify Widget

Discussion created by glen.rhea on Dec 14, 2010
I'm using the identify widget that ESRI wrote for the older versions of the js api and it worked fine in v2.0. I upgraded the viewer to v2.1 to take advantage of some of the new widgets (legend, overview) and now I'm getting this error in the console:

Error: Tried to register widget with id==-opt-layers-NaN but that id is already registered

The everything still works as far as I can tell but I'd like to get rid of that error if possible.

There is too much code to post so here is a link to the viewer: