ten1seven / what-input

A global utility for tracking the current input method (mouse/pointer, keyboard or touch).
https://ten1seven.github.io/what-input
MIT License
1.36k stars 89 forks source link

Allow unregistration of 0th function in functionList #79

Closed michaelcpuckett closed 6 years ago

michaelcpuckett commented 6 years ago

The first (0th) item cannot be unregistered.

Click the body and see that the event fires even after deregistering: https://jsfiddle.net/dLdubjnm/

ten1seven commented 6 years ago

@michaelcpuckett thanks for catching this and submitting a fix!

ten1seven commented 6 years ago

This is now up on NPM as version 5.0.6!