Disallows the .undelegate
method. Prefer .off
/EventTarget#removeEventListener
.
no-delegate
instead.
❌ Examples of incorrect code:
$( 'div' ).undelegate();
$div.undelegate();
$( 'div' ).first().undelegate();
$( 'div' ).append( $( 'input' ).undelegate() );
✔️ Examples of correct code:
undelegate();
[].undelegate();
div.undelegate();
div.undelegate;