Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit b360d06

Browse files
committed
Fix isMounted() check in built files
1 parent 3e7a8fe commit b360d06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ var Popover = (0, _react.createClass)({
120120
if (this.measureTargetBounds()) this.resolvePopoverLayout();
121121
},
122122
resolvePopoverLayout: function resolvePopoverLayout() {
123-
if (!this.isMounted) return;
123+
if (!this.isMounted()) return;
124124

125125
/* Find the optimal zone to position self. Measure the size of each zone and use the one with
126126
the greatest area. */

build/layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ var calcRelPos = function calcRelPos(zone, masterBounds, slaveSize) {
200200
var crossStart = place(zone.flow, 'cross', crossAlign, masterBounds, slaveSize);
201201
var crossSize = slaveSize[cross.size];
202202

203-
return (_ref = {}, _defineProperty(_ref, main.start, mainStart), _defineProperty(_ref, 'mainLength', mainSize), _defineProperty(_ref, main.end, mainStart + mainSize), _defineProperty(_ref, cross.start, crossStart), _defineProperty(_ref, 'crossLength', crossSize), _defineProperty(_ref, cross.end, crossStart + crossSize), _ref);
203+
return _ref = {}, _defineProperty(_ref, main.start, mainStart), _defineProperty(_ref, 'mainLength', mainSize), _defineProperty(_ref, main.end, mainStart + mainSize), _defineProperty(_ref, cross.start, crossStart), _defineProperty(_ref, 'crossLength', crossSize), _defineProperty(_ref, cross.end, crossStart + crossSize), _ref;
204204
};
205205

206206
exports.types = types;

0 commit comments

Comments
 (0)