es6-react-mixins
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -55,3 +55,10 @@ /* | ||
_Object$assign(NewClass.prototype, mixin); | ||
var clonedMixin = _Object$assign({}, mixin); | ||
// These React properties are defined as ES7 class static properties | ||
['childContextTypes', 'contextTypes', 'defaultProps', 'propTypes'].forEach(function (m) { | ||
NewClass[m] = clonedMixin[m]; | ||
delete clonedMixin[m]; | ||
}); | ||
_Object$assign(NewClass.prototype, clonedMixin); | ||
return NewClass; | ||
@@ -58,0 +65,0 @@ }; |
{ | ||
"name": "es6-react-mixins", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Augments ES6 classes with ES6 or traditional React mixins", | ||
@@ -5,0 +5,0 @@ "author": "Angus Croll", |
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
8310
75