angular2-infinite-scroll
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -77,3 +77,3 @@ System.registerDynamic("src/infinite-scroll", ["@angular/core", "./scroller"], true, function($__require, exports, module) { | ||
System.registerDynamic("src/scroller", ["rxjs/Rx", "./axis-resolver"], true, function($__require, exports, module) { | ||
System.registerDynamic("src/scroller", ["rxjs/Observable", "./axis-resolver", "rxjs/add/observable/fromEvent", "rxjs/add/observable/timer", "rxjs/add/operator/debounce"], true, function($__require, exports, module) { | ||
"use strict"; | ||
@@ -84,4 +84,7 @@ ; | ||
GLOBAL = this; | ||
var Rx_1 = $__require('rxjs/Rx'); | ||
var Observable_1 = $__require('rxjs/Observable'); | ||
var axis_resolver_1 = $__require('./axis-resolver'); | ||
$__require('rxjs/add/observable/fromEvent'); | ||
$__require('rxjs/add/observable/timer'); | ||
$__require('rxjs/add/operator/debounce'); | ||
var Scroller = (function() { | ||
@@ -224,4 +227,4 @@ function Scroller(windowElement, $interval, $elementRef, infiniteScrollDownCallback, infiniteScrollUpCallback, infiniteScrollDownDistance, infiniteScrollUpDistance, infiniteScrollParent, infiniteScrollThrottle, isImmediate, horizontal, alwaysCallback) { | ||
var throttle_1 = this.infiniteScrollThrottle; | ||
this.disposeScroll = Rx_1.Observable.fromEvent(this.container, 'scroll').debounce(function(ev) { | ||
return Rx_1.Observable.timer(throttle_1); | ||
this.disposeScroll = Observable_1.Observable.fromEvent(this.container, 'scroll').debounce(function(ev) { | ||
return Observable_1.Observable.timer(throttle_1); | ||
}).subscribe(function(ev) { | ||
@@ -228,0 +231,0 @@ return _this.handler(); |
{ | ||
"name": "angular2-infinite-scroll", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "An infinite scroll directive for angular2", | ||
@@ -12,3 +12,3 @@ "main": "angular2-infinite-scroll.js", | ||
"prepublish": "tsc & node make.js", | ||
"postinstall": "typings install", | ||
"postinstall": "npm run typings -- install", | ||
"clean": "rimraf src/*.js && rimraf src/*.d.ts && rimraf ./*scroll.js && rimraf ./*scroll.d.ts", | ||
@@ -19,3 +19,4 @@ "build:test": "tsc --project ./src", | ||
"test": "karma start karma.conf.js", | ||
"dev": "npm run watch & npm test" | ||
"dev": "npm run watch & npm test", | ||
"typings": "typings" | ||
}, | ||
@@ -22,0 +23,0 @@ "keywords": [ |
import { ElementRef } from '@angular/core'; | ||
import 'rxjs/add/observable/fromEvent'; | ||
import 'rxjs/add/observable/timer'; | ||
import 'rxjs/add/operator/debounce'; | ||
export declare class Scroller { | ||
@@ -3,0 +6,0 @@ private windowElement; |
"use strict"; | ||
var Rx_1 = require('rxjs/Rx'); | ||
var Observable_1 = require('rxjs/Observable'); | ||
var axis_resolver_1 = require('./axis-resolver'); | ||
require('rxjs/add/observable/fromEvent'); | ||
require('rxjs/add/observable/timer'); | ||
require('rxjs/add/operator/debounce'); | ||
var Scroller = (function () { | ||
@@ -151,4 +154,4 @@ function Scroller(windowElement, $interval, $elementRef, infiniteScrollDownCallback, infiniteScrollUpCallback, infiniteScrollDownDistance, infiniteScrollUpDistance, infiniteScrollParent, infiniteScrollThrottle, isImmediate, horizontal, alwaysCallback) { | ||
var throttle_1 = this.infiniteScrollThrottle; | ||
this.disposeScroll = Rx_1.Observable.fromEvent(this.container, 'scroll') | ||
.debounce(function (ev) { return Rx_1.Observable.timer(throttle_1); }) | ||
this.disposeScroll = Observable_1.Observable.fromEvent(this.container, 'scroll') | ||
.debounce(function (ev) { return Observable_1.Observable.timer(throttle_1); }) | ||
.subscribe(function (ev) { return _this.handler(); }); | ||
@@ -172,2 +175,2 @@ } | ||
exports.Scroller = Scroller; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzY3JvbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsbUJBQXlDLFNBQVMsQ0FBQyxDQUFBO0FBQ25ELDhCQUE2QixpQ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JvdHRsZTogbnVtYmVyID0gdGhpcy5pbmZpbml0ZVNjcm9sbFRocm90dGxlO1xuXHRcdFx0dGhpcy5kaXNwb3NlU2Nyb2xsID0gT2JzZXJ2YWJsZS5mcm9tRXZlbnQodGhpcy5jb250YWluZXIsICdzY3JvbGwnKVxuXHRcdFx0XHQuZGVib3VuY2UoZXYgPT4gT2JzZXJ2YWJsZS50aW1lcih0aHJvdHRsZSkpXG5cdFx0XHRcdC5zdWJzY3JpYmUoZXYgPT4gdGhpcy5oYW5kbGVyKCkpXG5cdFx0fVxuXHR9XG5cblx0Y2xlYW4gKCkge1xuXHRcdGlmICh0aGlzLmRpc3Bvc2VTY3JvbGwpIHtcblx0XHRcdHRoaXMuZGlzcG9zZVNjcm9sbC51bnN1YnNjcmliZSgpO1xuXHRcdH1cblx0fVxuXG5cdGhhbmRsZUluZmluaXRlU2Nyb2xsRGlzYWJsZWQgKGVuYWJsZVNjcm9sbDogYm9vbGVhbikge1xuXHRcdHRoaXMuc2Nyb2xsRW5hYmxlZCA9ICFlbmFibGVTY3JvbGw7XG5cdFx0Ly8gaWYgKHRoaXMuc2Nyb2xsRW5hYmxlZCAmJiBjaGVja1doZW5FbmFibGVkKSB7XG5cdFx0Ly8gXHRjaGVja1doZW5FbmFibGVkID0gZmFsc2U7XG5cdFx0Ly8gXHRyZXR1cm4gaGFuZGxlcigpO1xuXHRcdC8vIH1cblx0fVxufVxuIl19 |
@@ -501,2 +501,2 @@ // Generated by typings | ||
export var DEFAULT_TIMEOUT_INTERVAL: number; | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
312536
29
6575