react-infinite-scroll-container
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -104,7 +104,8 @@ 'use strict'; | ||
if (offset < Number(this.props.threshold)) { | ||
this.detachScrollListener(); | ||
// Call loadMore after detachScrollListener to allow for non-async loadMore functions | ||
if (typeof this.props.loadMore == 'function') { | ||
this.props.loadMore(this.pageLoaded += 1); | ||
} | ||
// Call loadMore after detachScrollListener to allow for non-async loadMore functions to run | ||
// I changed the location of the detachScrollListener because loadMore called twice | ||
this.detachScrollListener(); | ||
} | ||
@@ -111,0 +112,0 @@ } |
{ | ||
"name": "react-infinite-scroll-container", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Infinite scroll component for React in ES6", | ||
@@ -5,0 +5,0 @@ "main": "dist/InfiniteScroll.js", |
@@ -91,7 +91,8 @@ import React, { Component, PropTypes } from 'react'; | ||
if(offset < Number(this.props.threshold)) { | ||
this.detachScrollListener(); | ||
// Call loadMore after detachScrollListener to allow for non-async loadMore functions | ||
if (typeof this.props.loadMore == 'function') { | ||
this.props.loadMore(this.pageLoaded += 1); | ||
} | ||
// Call loadMore after detachScrollListener to allow for non-async loadMore functions to run | ||
// I changed the location of the detachScrollListener because loadMore called twice | ||
this.detachScrollListener(); | ||
} | ||
@@ -98,0 +99,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
770100
101
19480