fela-bindings
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -7,4 +7,2 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
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"); } } | ||
@@ -60,15 +58,3 @@ | ||
value: function render() { | ||
var _props = this.props, | ||
innerRef = _props.innerRef, | ||
passProps = _objectWithoutProperties(_props, ['innerRef']); | ||
if (innerRef) { | ||
if (component._isFelaComponent) { | ||
passProps.innerRef = innerRef; | ||
} else { | ||
passProps.ref = innerRef; | ||
} | ||
} | ||
return createElement(component, _extends({}, passProps, _defineProperty({}, propName, this.state.theme))); | ||
return createElement(component, _extends({}, this.props, _defineProperty({}, propName, this.state.theme))); | ||
} | ||
@@ -75,0 +61,0 @@ }]); |
@@ -23,4 +23,2 @@ '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"); } } | ||
@@ -73,15 +71,3 @@ | ||
value: function render() { | ||
var _props = this.props, | ||
innerRef = _props.innerRef, | ||
passProps = _objectWithoutProperties(_props, ['innerRef']); | ||
if (innerRef) { | ||
if (component._isFelaComponent) { | ||
passProps.innerRef = innerRef; | ||
} else { | ||
passProps.ref = innerRef; | ||
} | ||
} | ||
return createElement(component, _extends({}, passProps, _defineProperty({}, propName, this.state.theme))); | ||
return createElement(component, _extends({}, this.props, _defineProperty({}, propName, this.state.theme))); | ||
} | ||
@@ -88,0 +74,0 @@ }]); |
{ | ||
"name": "fela-bindings", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Abstract binding factories for Fela", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
57051
1014