tristen / hoverintent

:mouse: Fire mouse events when a user intends it
https://tristen.ca/hoverintent/
MIT License
331 stars 54 forks source link

Feature/removal #3

Closed timoxley closed 11 years ago

timoxley commented 11 years ago

Adds ability to remove hoverintent behaviour.

e.g.

var hoverTwo = hoverintent(second, function(e) {
    this.className = 'on';
  }, function(e) {
    this.className = 'off';
  });

// removes hoverintent behaviour
hoverTwo.remove()

Fixes https://github.com/tristen/hoverintent/issues/2.

timoxley commented 11 years ago

bump @tristen

tristen commented 11 years ago

Sorry for the late reply @timoxley - thanks for this!