Skip to content

Commit

Permalink
V1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yjose committed Dec 13, 2018
1 parent 543d54c commit 6a5cc59
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 19 deletions.
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
"bugs": {
"url": "https://github.com/yjose/reactjs-popup/issues"
},
"homepage": "https://react-popup.netlify.com/"
"homepage": "https://react-popup.elazizi.com/"
}
12 changes: 7 additions & 5 deletions lib/reactjs-popup.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function (_React$PureComponent) {

});

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "rerepositionOnResize", function () {
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "repositionOnResize", function () {
_this.setPosition();
});

Expand Down Expand Up @@ -411,15 +411,17 @@ function (_React$PureComponent) {
});

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setPosition", function () {
var _this$state = _this.state,
modal = _this$state.modal,
isOpen = _this$state.isOpen;
if (modal || !isOpen) return;
var _this$props = _this.props,
arrow = _this$props.arrow,
position = _this$props.position,
offsetX = _this$props.offsetX,
offsetY = _this$props.offsetY,
keepTooltipInside = _this$props.keepTooltipInside,
arrowStyle = _this$props.arrowStyle;
var modal = _this.state.modal;
if (modal) return;

var helper = _this.HelperEl.getBoundingClientRect();

Expand Down Expand Up @@ -551,7 +553,7 @@ function (_React$PureComponent) {
}

if (repositionOnResize) {
window.addEventListener('resize', this.rerepositionOnResize);
window.addEventListener('resize', this.repositionOnResize);
}
}
}, {
Expand Down Expand Up @@ -581,7 +583,7 @@ function (_React$PureComponent) {
}

if (repositionOnResize) {
window.removeEventListener('resize', this.rerepositionOnResize);
window.removeEventListener('resize', this.repositionOnResize);
}
}
}, {
Expand Down
12 changes: 7 additions & 5 deletions lib/reactjs-popup.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ function (_React$PureComponent) {

});

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "rerepositionOnResize", function () {
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "repositionOnResize", function () {
_this.setPosition();
});

Expand Down Expand Up @@ -407,15 +407,17 @@ function (_React$PureComponent) {
});

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setPosition", function () {
var _this$state = _this.state,
modal = _this$state.modal,
isOpen = _this$state.isOpen;
if (modal || !isOpen) return;
var _this$props = _this.props,
arrow = _this$props.arrow,
position = _this$props.position,
offsetX = _this$props.offsetX,
offsetY = _this$props.offsetY,
keepTooltipInside = _this$props.keepTooltipInside,
arrowStyle = _this$props.arrowStyle;
var modal = _this.state.modal;
if (modal) return;

var helper = _this.HelperEl.getBoundingClientRect();

Expand Down Expand Up @@ -547,7 +549,7 @@ function (_React$PureComponent) {
}

if (repositionOnResize) {
window.addEventListener('resize', this.rerepositionOnResize);
window.addEventListener('resize', this.repositionOnResize);
}
}
}, {
Expand Down Expand Up @@ -577,7 +579,7 @@ function (_React$PureComponent) {
}

if (repositionOnResize) {
window.removeEventListener('resize', this.rerepositionOnResize);
window.removeEventListener('resize', this.repositionOnResize);
}
}
}, {
Expand Down
12 changes: 7 additions & 5 deletions lib/reactjs-popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@

});

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "rerepositionOnResize", function () {
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "repositionOnResize", function () {
_this.setPosition();
});

Expand Down Expand Up @@ -412,15 +412,17 @@
});

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setPosition", function () {
var _this$state = _this.state,
modal = _this$state.modal,
isOpen = _this$state.isOpen;
if (modal || !isOpen) return;
var _this$props = _this.props,
arrow = _this$props.arrow,
position = _this$props.position,
offsetX = _this$props.offsetX,
offsetY = _this$props.offsetY,
keepTooltipInside = _this$props.keepTooltipInside,
arrowStyle = _this$props.arrowStyle;
var modal = _this.state.modal;
if (modal) return;

var helper = _this.HelperEl.getBoundingClientRect();

Expand Down Expand Up @@ -552,7 +554,7 @@
}

if (repositionOnResize) {
window.addEventListener('resize', this.rerepositionOnResize);
window.addEventListener('resize', this.repositionOnResize);
}
}
}, {
Expand Down Expand Up @@ -582,7 +584,7 @@
}

if (repositionOnResize) {
window.removeEventListener('resize', this.rerepositionOnResize);
window.removeEventListener('resize', this.repositionOnResize);
}
}
}, {
Expand Down
2 changes: 1 addition & 1 deletion lib/reactjs-popup.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/reactjs-popup.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@
"bugs": {
"url": "https://github.com/yjose/reactjs-popup/issues"
},
"homepage": "https://react-popup.netlify.com/"
"homepage": "https://react-popup.elazizi.com/"
}

0 comments on commit 6a5cc59

Please sign in to comment.