Skip to content

Commit

Permalink
just use router methods
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Mar 3, 2020
1 parent 08ec219 commit f6e5e5a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 68 deletions.
38 changes: 0 additions & 38 deletions addon/-private/evented.js

This file was deleted.

27 changes: 0 additions & 27 deletions addon/-private/notifier.js

This file was deleted.

5 changes: 2 additions & 3 deletions addon/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import EmberRouter from '@ember/routing/router';
import { get, computed } from '@ember/object';
import { addEvented } from './-private/evented';
import { inject } from '@ember/service';
import { getOwner } from '@ember/application';
import { scheduleOnce } from '@ember/runloop';
Expand Down Expand Up @@ -90,7 +89,7 @@ const CALLBACK = function(transition) {
this.updateScrollPosition(transition);
}

class EmberRouterScroll extends addEvented(EmberRouter) {
class EmberRouterScroll extends EmberRouter {
@inject('router-scroll') service;

idlePool;
Expand Down Expand Up @@ -179,7 +178,7 @@ class EmberRouterScroll extends addEvented(EmberRouter) {
}
}

this.triggerEvent('didScroll');
this.trigger('didScroll');
}

_routeWillChange() {
Expand Down

0 comments on commit f6e5e5a

Please sign in to comment.