• Romain Courteaud's avatar
    Always create an empty DOM element for a new gadget. · d939a570
    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.
    d939a570
renderjs.js 65 KB