Closed harryeakins closed 4 years ago
DeviceEventEmitter.removeListener requires the listener to be passed in as the second argument. Without this, it does nothing.
DeviceEventEmitter.removeAllListeners will remove all listeners for a given event.
It took me a while to check it (sorry), but thanks for it! I really appreciate the work you've done, @harryeakins. Merged!
DeviceEventEmitter.removeListener requires the listener to be passed in as the second argument. Without this, it does nothing.
DeviceEventEmitter.removeAllListeners will remove all listeners for a given event.