Comparing version 0.18.0 to 0.18.1
# Radium Changelog | ||
## 0.18.1 (July 19, 2016) | ||
### Bug Fixes | ||
- Fix unused props warning when passing `radiumConfig` to `StyleRoot` (#787). | ||
## 0.18.0 (July 15, 2016) | ||
@@ -4,0 +9,0 @@ |
@@ -25,2 +25,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"); } } | ||
@@ -58,5 +60,13 @@ | ||
StyleRoot.prototype.render = function render() { | ||
/* eslint-disable no-unused-vars */ | ||
// Pass down all props except config to the rendered div. | ||
var _props = this.props; | ||
var radiumConfig = _props.radiumConfig; | ||
var otherProps = _objectWithoutProperties(_props, ['radiumConfig']); | ||
/* eslint-enable no-unused-vars */ | ||
return _react2.default.createElement( | ||
'div', | ||
this.props, | ||
otherProps, | ||
this.props.children, | ||
@@ -63,0 +73,0 @@ _react2.default.createElement(_styleSheet2.default, null) |
@@ -294,4 +294,3 @@ 'use strict'; | ||
renderedElement) { | ||
var // ReactElement | ||
config = arguments.length <= 2 || arguments[2] === undefined ? DEFAULT_CONFIG : arguments[2]; | ||
var config = arguments.length <= 2 || arguments[2] === undefined ? DEFAULT_CONFIG : arguments[2]; | ||
var existingKeyMap = arguments[3]; | ||
@@ -298,0 +297,0 @@ var shouldCheckBeforeResolve = arguments.length <= 4 || arguments[4] === undefined ? false : arguments[4]; |
{ | ||
"name": "radium", | ||
"version": "0.18.0", | ||
"version": "0.18.1", | ||
"description": "A set of tools to manage inline styles on React elements", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -34,4 +34,9 @@ /* @flow */ | ||
render() { | ||
/* eslint-disable no-unused-vars */ | ||
// Pass down all props except config to the rendered div. | ||
const {radiumConfig, ...otherProps} = this.props; | ||
/* eslint-enable no-unused-vars */ | ||
return ( | ||
<div {...this.props}> | ||
<div {...otherProps}> | ||
{this.props.children} | ||
@@ -38,0 +43,0 @@ <StyleSheet /> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
470397
8820