best practice: should i unbind on custom widget
i create custom multiple span element and 开发者_C百科bind with with click event. i want to dynamically remove the span on click. i can just remove the span with remove() function. for good practice, should i call unbind on the span first before call remove() ? please advice
According to jQuery, calling remove
will automatically unbind the click event. So you should be okay.
精彩评论