Dojo and unregistering widgets
        Posted  
        
            by John Korsnes
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by John Korsnes
        
        
        
        Published on 2010-05-04T08:59:11Z
        Indexed on 
            2010/05/04
            9:18 UTC
        
        
        Read the original article
        Hit count: 284
        
Hi,
I am new to the Dojo Toolkit. I'm getting the error
Tried to register widget with id=myButton but that id is already registered
whenever I try to load dojo content twice (meaning I load HTML content through jQuery.Load into a container div). Is there a way of unregistering already registered widgets in dojo? I've seen some examples, but I don't really get them working.
My button:
<button dojoType="dijit.form.Button" id="myButton">button</button>
© Stack Overflow or respective owner