Comparing version 1.0.1 to 1.0.2
@@ -216,4 +216,2 @@ "use strict"; | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "mutationOberver", isMutationOberverSupported && new MutationObserver(_this.onMutation)); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onMutation", function () { | ||
@@ -223,2 +221,4 @@ _this.fit(); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "mutationOberver", isMutationOberverSupported && new MutationObserver(_this.onMutation)); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "fit", function () { | ||
@@ -225,0 +225,0 @@ var _assertThisInitialize = _assertThisInitialized(_assertThisInitialized(_this)), |
{ | ||
"name": "react-fit", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Fit a popover element on the screen.", | ||
@@ -5,0 +5,0 @@ "main": "dist/Fit.js", |
@@ -152,4 +152,2 @@ import React, { Component } from 'react'; | ||
export default class Fit extends Component { | ||
mutationOberver = isMutationOberverSupported && new MutationObserver(this.onMutation); | ||
componentDidMount() { | ||
@@ -173,2 +171,6 @@ if (!isDisplayContentsSupported) { | ||
// Has to be defined after onMutation | ||
// eslint-disable-next-line react/sort-comp | ||
mutationOberver = isMutationOberverSupported && new MutationObserver(this.onMutation); | ||
fit = () => { | ||
@@ -175,0 +177,0 @@ const { container, element } = this; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28459
524