Skip to content

Commit

Permalink
Bump to 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwithanm committed Sep 25, 2014
1 parent cd64a9a commit 90340ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "react-controllables",
"version": "0.2.0",
"version": "0.2.1",
"authors": [
"Matthew Dapena-Tretter <m@tthewwithanm.com>"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-controllables",
"version": "0.2.0",
"version": "0.2.1",
"description": "Easily create controllable components",
"main": "./lib/index.js",
"directories": {
Expand Down
9 changes: 5 additions & 4 deletions standalone/react-controllables.js
Expand Up @@ -40,11 +40,12 @@ ControllablesMixin = {
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
name = _ref[_i];
newValue = this.state[name];
if (newValue === prevState[name]) {
continue;
}
oldValue = getControllableValue(name, prevState, prevProps);
if (newValue !== oldValue) {
if (typeof (_base = this.props)[_name = callbackName(name)] === "function") {
_base[_name](newValue, oldValue);
}
if (typeof (_base = this.props)[_name = callbackName(name)] === "function") {
_base[_name](newValue, oldValue);
}
}
}
Expand Down

0 comments on commit 90340ae

Please sign in to comment.