react-resizable
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -19,2 +19,4 @@ 'use strict'; | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -160,3 +162,8 @@ | ||
Resizable.prototype.render = function render() { | ||
var p = this.props; | ||
var _props = this.props; | ||
var width = _props.width; | ||
var height = _props.height; | ||
var p = _objectWithoutProperties(_props, ['width', 'height']); | ||
var className = p.className ? p.className + ' react-resizable' : 'react-resizable'; | ||
@@ -163,0 +170,0 @@ |
@@ -67,4 +67,6 @@ 'use strict'; | ||
var lockAspectRatio = _props.lockAspectRatio; | ||
var width = _props.width; | ||
var height = _props.height; | ||
var props = _objectWithoutProperties(_props, ['handleSize', 'onResizeStart', 'onResizeStop', 'draggableOpts', 'minConstraints', 'maxConstraints', 'lockAspectRatio']); | ||
var props = _objectWithoutProperties(_props, ['handleSize', 'onResizeStart', 'onResizeStop', 'draggableOpts', 'minConstraints', 'maxConstraints', 'lockAspectRatio', 'width', 'height']); | ||
@@ -71,0 +73,0 @@ return _react2.default.createElement( |
{ | ||
"name": "react-resizable", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "A component that is resizable with handles.", | ||
@@ -5,0 +5,0 @@ "main": "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
20249
12
291