From e6dedc1709eac7be17197baa3931a1109a1db7bf Mon Sep 17 00:00:00 2001 From: Bradley Maier Date: Wed, 8 Nov 2017 11:19:14 -0500 Subject: [PATCH] Simplify details logic --- src/meta/Intersection.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/meta/Intersection.ts b/src/meta/Intersection.ts index 613d874e..11e72183 100644 --- a/src/meta/Intersection.ts +++ b/src/meta/Intersection.ts @@ -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); }