Skip to content

Commit

Permalink
improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Jul 22, 2018
1 parent 2ca90d4 commit db6bb79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addon/services/-observer-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ let DOMRef = new WeakMap();
* Static administrator to ensure use one IntersectionObserver per viewport
* Use `root` (viewport) as lookup property
* `root` will have one IntersectionObserver with many entries (elements) to watch
* provided callback will ensure consumer of this service is able to react to
* provided callback will ensure consumer of this service is able to react to enter or exit
* of intersection observer
*
* @module Ember.Service
* @class ObserverAdmin
*/
export default class ObserverAdmin extends Service {
/**
* adds element to observe entries of IntersectionObserver
*
* @method add
* @param {Node} element
* @param {Function} enterCallback
Expand Down Expand Up @@ -50,6 +52,7 @@ export default class ObserverAdmin extends Service {

/**
* to unobserver multiple elements
*
* @method disconnect
* @param {Node|window} root
*/
Expand Down

0 comments on commit db6bb79

Please sign in to comment.