angular2-infinite-scroll
Advanced tools
Comparing version 0.2.6-3 to 0.2.6-4
@@ -37,2 +37,3 @@ System.registerDynamic('src/scroller', ['rxjs/Observable', 'rxjs/add/observable/fromEvent', 'rxjs/add/observable/timer', 'rxjs/add/operator/throttle', 'rxjs/add/operator/filter', 'rxjs/add/operator/delay'], true, function ($__require, exports, module) { | ||
this.lastScrollPosition = 0; | ||
this.reachedEnd = false; | ||
this.isContainerWindow = Object.prototype.toString.call(this.windowElement).includes('Window'); | ||
@@ -118,3 +119,3 @@ this.documentElement = this.isContainerWindow ? this.windowElement.document.documentElement : null; | ||
}).subscribe(function (ev) { | ||
_this.handler(); | ||
!_this.reachedEnd && _this.handler(); | ||
setTimeout(function () { | ||
@@ -124,3 +125,6 @@ var container = _this.positionResolver.calculatePoints(_this.$elementRef); | ||
if (reachedEndOfContainer) { | ||
_this.reachedEnd = true; | ||
_this.handler(); | ||
} else { | ||
_this.reachedEnd = false; | ||
} | ||
@@ -127,0 +131,0 @@ }, throttle_1 + 50); |
{ | ||
"name": "angular2-infinite-scroll", | ||
"version": "0.2.6-3", | ||
"version": "0.2.6-4", | ||
"description": "An infinite scroll directive for angular2", | ||
@@ -5,0 +5,0 @@ "main": "angular2-infinite-scroll.js", |
@@ -36,2 +36,3 @@ import { ElementRef } from '@angular/core'; | ||
private positionResolver; | ||
private reachedEnd; | ||
constructor(windowElement: Window | ElementRef | any, $interval: Function, $elementRef: ElementRef, infiniteScrollDownCallback: Function, infiniteScrollUpCallback: Function, infiniteScrollDownDistance: number, infiniteScrollUpDistance: number, infiniteScrollParent: Window | ElementRef | any, infiniteScrollThrottle: number, isImmediate: boolean, horizontal: boolean, alwaysCallback: boolean, scrollDisabled: boolean, _positionResolver: PositionResolverFactory); | ||
@@ -38,0 +39,0 @@ defineContainer(): void; |
@@ -26,2 +26,3 @@ "use strict"; | ||
this.lastScrollPosition = 0; | ||
this.reachedEnd = false; | ||
this.isContainerWindow = Object.prototype.toString.call(this.windowElement).includes('Window'); | ||
@@ -109,3 +110,3 @@ this.documentElement = this.isContainerWindow ? this.windowElement.document.documentElement : null; | ||
.subscribe(function (ev) { | ||
_this.handler(); | ||
!_this.reachedEnd && _this.handler(); | ||
setTimeout(function () { | ||
@@ -115,4 +116,8 @@ var container = _this.positionResolver.calculatePoints(_this.$elementRef); | ||
if (reachedEndOfContainer) { | ||
_this.reachedEnd = true; | ||
_this.handler(); | ||
} | ||
else { | ||
_this.reachedEnd = false; | ||
} | ||
}, throttle_1 + 50); | ||
@@ -133,2 +138,2 @@ }); | ||
exports.Scroller = Scroller; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzY3JvbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsMkJBQTJCLGlCQUFpQixDQUFDLENBQUE7QUFJN0MsUUFBTywrQkFBK0IsQ0FBQyxDQUFBO0FBQ3ZDLFFBQU8sMkJBQTJCLENBQUMsQ0FBQTtBQUNuQyxRQUFPLDRCQUE0QixDQUFDLENBQUE7QUFDcEMsUUFBTywwQkFBMEIsQ0FBQyxDQUFBO0FBQ2xDLFFBQU8seUJBQXlCLENBQUMsQ0FBQTtBQUloQyxDQUFDO0FBRUY7SUFnQkUsa0JBQ1UsYUFBd0MsRUFDeEMsU0FBbUIsRUFDbkIsV0FBdUIsRUFDdkIsMEJBQW9DLEVBQ3BDLHdCQUFrQyxFQUMxQywwQkFBa0MsRUFDbEMsd0JBQWdDLEVBQ2hDLG9CQUErQyxFQUN2QyxzQkFBOEIsRUFDOUIsV0FBb0IsRUFDcEIsVUFBMkIsRUFDM0IsY0FBK0IsRUFDL0IsY0FBK0IsRUFDL0IsaUJBQTBDO1FBSGxELDBCQUFtQyxHQUFuQyxrQkFBbUM7UUFDbkMsOEJBQXVDLEdBQXZDLHNCQUF1QztRQUN2Qyw4QkFBdUMsR0FBdkMs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bml0ZVNjcm9sbERpc2FibGVkIChzY3JvbGxEaXNhYmxlZDogYm9vbGVhbikge1xuICAgIHRoaXMuc2Nyb2xsRW5hYmxlZCA9ICFzY3JvbGxEaXNhYmxlZDtcbiAgfVxufVxuXG5pbnRlcmZhY2UgRGVjb3JhdG9ySW52b2NhdGlvbiB7XG4gIHR5cGU6IEZ1bmN0aW9uO1xuICBhcmdzPzogYW55W107XG59XG4iXX0= |
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
129920
1600