Skip to content

Commit

Permalink
run ember-cli-update and upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
amk221 committed Sep 6, 2024
1 parent d992791 commit 0848bf3
Show file tree
Hide file tree
Showing 18 changed files with 9,669 additions and 12,106 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/vendor/

# compiled output
/declarations/
/dist/
/tmp/

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
fail-fast: false
matrix:
try-scenario:
- ember-lts-4.8
- ember-lts-4.12
- ember-lts-5.4
- ember-release
- ember-beta
- ember-canary
Expand Down
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
/ember-cli-build.js
/testem.js
/tests/
/tsconfig.declarations.json
/tsconfig.json
/yarn-error.log
/yarn.lock
.gitkeep
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 10.0.5

- Run ember-cli-update
- Upgrade dependencies

## 10.0.4

- Expose scroll direction on API
Expand Down
13 changes: 6 additions & 7 deletions addon/components/infinite-scroller.gjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable ember/no-runloop */

import Component from '@glimmer/component';
import { resolve } from 'rsvp';
import { debounce, cancel } from '@ember/runloop';
Expand All @@ -18,14 +20,11 @@ export default class InfiniteScrollerComponent extends Component {
scroller;
debounceId;

setScroller = modifier(
(element, [positionalElement]) => {
this._registerScroller(positionalElement ?? element);
setScroller = modifier((element, [positionalElement]) => {
this._registerScroller(positionalElement ?? element);

return () => this._deregisterScroller();
},
{ eager: false }
);
return () => this._deregisterScroller();
});

get debounce() {
return this.args.debounce ?? 100;
Expand Down
Loading

0 comments on commit 0848bf3

Please sign in to comment.