electrum-events
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -34,4 +34,6 @@ 'use strict'; | ||
this._listeners = listeners || {}; | ||
document.addEventListener('mouseup', this.mouseupListener, EventListenerMode); | ||
document.addEventListener('mousemove', this.mousemoveListener, EventListenerMode); | ||
this._mouseup = e => this.mouseupListener(e); | ||
this._mousemove = e => this.mousemoveListener(e); | ||
document.addEventListener('mouseup', this._mouseup, EventListenerMode); | ||
document.addEventListener('mousemove', this._mousemove, EventListenerMode); | ||
preventGlobalMouseEvents(); | ||
@@ -55,4 +57,4 @@ } | ||
} | ||
document.removeEventListener('mouseup', this.mouseupListener, EventListenerMode); | ||
document.removeEventListener('mousemove', this.mousemoveListener, EventListenerMode); | ||
document.removeEventListener('mouseup', this._mouseup, EventListenerMode); | ||
document.removeEventListener('mousemove', this._mousemove, EventListenerMode); | ||
e.stopPropagation(); | ||
@@ -59,0 +61,0 @@ } |
{ | ||
"name": "electrum-events", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Electrum Events forwards web component events to the bus.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -20,4 +20,6 @@ 'use strict'; | ||
this._listeners = listeners || {}; | ||
document.addEventListener ('mouseup', this.mouseupListener, EventListenerMode); | ||
document.addEventListener ('mousemove', this.mousemoveListener, EventListenerMode); | ||
this._mouseup = e => this.mouseupListener (e); | ||
this._mousemove = e => this.mousemoveListener (e); | ||
document.addEventListener ('mouseup', this._mouseup, EventListenerMode); | ||
document.addEventListener ('mousemove', this._mousemove, EventListenerMode); | ||
preventGlobalMouseEvents (); | ||
@@ -38,4 +40,4 @@ } | ||
} | ||
document.removeEventListener ('mouseup', this.mouseupListener, EventListenerMode); | ||
document.removeEventListener ('mousemove', this.mousemoveListener, EventListenerMode); | ||
document.removeEventListener ('mouseup', this._mouseup, EventListenerMode); | ||
document.removeEventListener ('mousemove', this._mousemove, EventListenerMode); | ||
e.stopPropagation (); | ||
@@ -42,0 +44,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37371
764