subscribe-ui-event
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -97,4 +97,4 @@ /** | ||
*/ | ||
function connectContinuousEvent(target, mainEvent, event, eventOptions) { | ||
return function throttleEvent(throttleRate, cb, options) { | ||
function connectContinuousEvent(target, mainEvent, event) { | ||
return function throttleEvent(throttleRate, cb, options, eventOptions) { | ||
var context = options.context; | ||
@@ -163,3 +163,3 @@ var domTarget = options.target; | ||
function connectDiscreteEvent(target, event) { | ||
return function throttleEvent(throttleRate, cb, options) { | ||
return function throttleEvent(throttleRate, cb, options, eventOptions) { | ||
var context = options.context; | ||
@@ -186,3 +186,3 @@ var domTarget = options.target; | ||
listeners[throttledEvent] = listen(domTarget || target, event, handler); | ||
listeners[throttledEvent] = listen(domTarget || target, event, handler, eventOptions); | ||
return remover; | ||
@@ -189,0 +189,0 @@ }; |
@@ -128,4 +128,4 @@ 'use strict'; | ||
*/ | ||
function connectContinuousEvent(target, mainEvent, event, eventOptions) { | ||
return function throttleEvent(throttleRate, cb, options) { | ||
function connectContinuousEvent(target, mainEvent, event) { | ||
return function throttleEvent(throttleRate, cb, options, eventOptions) { | ||
var context = options.context; | ||
@@ -194,3 +194,3 @@ var domTarget = options.target; | ||
function connectDiscreteEvent(target, event) { | ||
return function throttleEvent(throttleRate, cb, options) { | ||
return function throttleEvent(throttleRate, cb, options, eventOptions) { | ||
var context = options.context; | ||
@@ -217,3 +217,3 @@ var domTarget = options.target; | ||
listeners[throttledEvent] = (0, _listen2.default)(domTarget || target, event, handler); | ||
listeners[throttledEvent] = (0, _listen2.default)(domTarget || target, event, handler, eventOptions); | ||
return remover; | ||
@@ -220,0 +220,0 @@ }; |
{ | ||
"name": "subscribe-ui-event", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "A single, throttle built-in solution to subscribe to browser UI Events.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
50318
25
1