es6-react-mixins
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -29,2 +29,5 @@ /* | ||
}; | ||
var trueNoop = function trueNoop() { | ||
return true; | ||
}; | ||
var es6ify = function es6ify(mixin) { | ||
@@ -77,4 +80,6 @@ if (typeof mixin === 'function') { | ||
Base.prototype.shouldComponentUpdate = trueNoop; | ||
// No-ops so we need not check before calling super() | ||
['componentWillMount', 'componentDidMount', 'componentWillReceiveProps', 'shouldComponentUpdate', 'componentWillUpdate', 'componentDidUpdate', 'componentWillUnmount', 'render'].forEach(function (m) { | ||
['componentWillMount', 'componentDidMount', 'componentWillReceiveProps', 'componentWillUpdate', 'componentDidUpdate', 'componentWillUnmount', 'render'].forEach(function (m) { | ||
return Base.prototype[m] = noop; | ||
@@ -81,0 +86,0 @@ }); |
{ | ||
"name": "es6-react-mixins", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Augments ES6 classes with ES6 or traditional React mixins", | ||
@@ -5,0 +5,0 @@ "author": "Angus Croll", |
@@ -118,8 +118,1 @@ # es6-react-mixins | ||
Yes please! | ||
8014
69
118