Skip to content

Commit

Permalink
more doc improve
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Jul 22, 2018
1 parent db6bb79 commit d086720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/services/-observer-admin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Service from '@ember/service';
import { bind } from '@ember/runloop';

// WeakMap { root: { elements: [{ element, enterCallback, exitCallback }]. IntersectionObserver } }
// WeakMap { root: { elements: [{ element, enterCallback, exitCallback }], IntersectionObserver } }
let DOMRef = new WeakMap();

/**
Expand Down Expand Up @@ -34,7 +34,7 @@ export default class ObserverAdmin extends Service {
} else {
let newIO = new IntersectionObserver(bind(this, this._setupOnIntersection(root)), options);
newIO.observe(element);
DOMRef.set(root, { elements: [{ element, enterCallback, exitCallback }], intersectionObserver: newIO, options });
DOMRef.set(root, { elements: [{ element, enterCallback, exitCallback }], intersectionObserver: newIO });
}
}

Expand Down

0 comments on commit d086720

Please sign in to comment.