react-scroll
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -25,4 +25,4 @@ var eventThrottler = function(eventHandler) { | ||
var eventHandler = eventThrottler(function(event) { | ||
t.scrollHandler(scrollSpyContainer); | ||
}); | ||
t.scrollHandler(scrollSpyContainer); | ||
}); | ||
this.scrollSpyContainers.push(scrollSpyContainer); | ||
@@ -50,5 +50,7 @@ scrollSpyContainer.addEventListener('scroll', eventHandler); | ||
var callbacks = this.scrollSpyContainers[this.scrollSpyContainers.indexOf(scrollSpyContainer)].spyCallbacks; | ||
for(var i = 0; i < callbacks.length; i++) { | ||
var position =this.currentPositionY(scrollSpyContainer); | ||
callbacks[i](this.currentPositionY(scrollSpyContainer)); | ||
if (callbacks) { | ||
for(var i = 0; i < callbacks.length; i++) { | ||
var position =this.currentPositionY(scrollSpyContainer); | ||
callbacks[i](this.currentPositionY(scrollSpyContainer)); | ||
} | ||
} | ||
@@ -55,0 +57,0 @@ }, |
{ | ||
"name": "react-scroll", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "A scroll component for React.js", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
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
38853
892