react-resizable-box
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -37,2 +37,3 @@ 'use strict'; | ||
}; | ||
var directions = ['top', 'right', 'bottom', 'left', 'topRight', 'bottomRight', 'bottomLeft', 'topLeft']; | ||
@@ -56,2 +57,6 @@ var Resizable = function (_Component) { | ||
_this.onResizeStartWithDirection = {}; | ||
directions.forEach(function (d) { | ||
_this.onResizeStartWithDirection[d] = _this.onResizeStart.bind(_this, d); | ||
}); | ||
_this.onTouchMove = _this.onTouchMove.bind(_this); | ||
@@ -251,3 +256,2 @@ _this.onMouseMove = _this.onMouseMove.bind(_this); | ||
return Object.keys(isResizable).map(function (dir) { | ||
var onResizeStart = _this3.onResizeStart.bind(_this3, dir); | ||
if (isResizable[dir] !== false) { | ||
@@ -257,3 +261,3 @@ return _react2.default.createElement(_resizer2.default, { | ||
type: dir, | ||
onResizeStart: onResizeStart, | ||
onResizeStart: _this3.onResizeStartWithDirection[dir], | ||
replaceStyles: handleStyle[dir], | ||
@@ -260,0 +264,0 @@ className: handleClass[dir] |
{ | ||
"name": "react-resizable-box", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
21866
475