Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlplusb committed Oct 11, 2019
1 parent 6df6f68 commit 86ba92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/with-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function withSize(config = defaultConfig) {
this.detector.listenTo(this.domEl, this.checkIfSizeChanged)
} else if (
(this.domEl.isSameNode && !this.domEl.isSameNode(found)) ||
(!this.domEl.isSameNode && this.domEl !== found)
this.domEl !== found
) {
this.uninstall()
this.domEl = found
Expand Down

0 comments on commit 86ba92e

Please sign in to comment.