• Romain Courteaud's avatar
    Always create an empty DOM element for a new gadget. · 6a6b8242
    Romain Courteaud authored
    This reduces the number of DOM modifications (only one replace).
    
    This also ensure that the element content is empty.
    
    Previous event listener will also be discarded (and so, reduce memory usage).
    
    declareGadget element parameter can now also be a tag name.
    6a6b8242
renderjs_test.js 187 KB