korok-react
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -128,4 +128,8 @@ /*! | ||
}); | ||
var bindKorokParam = target.bindKorokParam || null; | ||
util_1.patch(target, 'componentWillMount', function () { | ||
var _this = this; | ||
if (bindKorokParam) { | ||
korok.bindParam(bindKorokParam); | ||
} | ||
korok.setProps(this.props); | ||
@@ -132,0 +136,0 @@ korok.compose(function () { |
{ | ||
"name": "korok-react", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Korok React Enhancer", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -18,3 +18,9 @@ import Korok from 'korok-core' | ||
const bindKorokParam = target.bindKorokParam || null | ||
patch(target, 'componentWillMount', function() { | ||
if (bindKorokParam) { | ||
korok.bindParam(bindKorokParam) | ||
} | ||
korok.setProps(this.props) | ||
@@ -21,0 +27,0 @@ korok.compose(() => { |
Sorry, the diff of this file is not supported yet
123713
467