javascript - Is jQuery.off() needed when you use one()? -
if bind event handler one()
(i want run once), still need unbind off()
after event handler finishes?
$(el).one('transitionend', function(e){ $(el).off('transitionend'); necessary? });
no, $.off()
not needed @ all. once event fires once, handler removed.
Comments
Post a Comment