AnsweredAssumed Answered

How to destroy a component by id

Question asked by xiaoyun8786 on Aug 29, 2014
Latest reply on Aug 31, 2014 by xiaoyun8786

Hello superiors:

       Now I  have  a question like this:

       I create a component  use :

      var myDialog = new dijit.Dialog({

      id:"myDialog ",



when I create this dialog second , the  error  prompt that  the id has been registerred。

now I want to destroy the dialog  by id  before I create the dialog again ,how can i do it , thanks very much.