Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
init() {
this._super(...arguments);
set(this, 'watcher', new spaniel.Watcher({ rootMargin: this._getRootMargin() }));
},
_setupViewport() {
const element = get(this, 'element');
spaniel.scheduleWork(() => {
get(this, 'watcher').watch(element, () => {
get(this, 'getNextData').perform();
});
});
},