Is a bug of measurement ????? help me!

Discussion created by loyers on May 25, 2011
Latest reply on May 25, 2011 by DSwingley-esristaff
hi: there is some thing wrong with the measurement widget, the code as felow:

i user js api of 2.3.

if (measurement != null)

measurement = new esri.dijit.Measurement({
                map: map
            }, dojo.byId('apDiv1'));

// measurement  is a  Global  object
// this code may be called many times , the first once it  work right , but the second.......   it does not work right

the excption is :

  tride to register widget with id == apDiv1 but that id is already gegisterdineNumber;

but before i   new  the measurement  object   a alread call its  "destroy();" , does not  the "destroy();"  work ???

or is it a bug ???  How do i do it ?

thank you.