Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Commit

Permalink
Simplify details logic
Browse files Browse the repository at this point in the history
  • Loading branch information
maier49 committed Nov 8, 2017
1 parent 2547b45 commit e6dedc1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/meta/Intersection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,8 @@ export class Intersection extends Base {
return defaultIntersection;
}

let details = this._getDetails(options);
if (!details || !details.entries.get(node)) {
if (!details) {
details = this._createDetails(options, rootNode);
}
let details = this._getDetails(options) || this._createDetails(options, rootNode);
if (!details.entries.get(node)) {
details.entries.set(node, defaultIntersection);
details.observer.observe(node);
}
Expand Down

0 comments on commit e6dedc1

Please sign in to comment.