dillon1000/react
Commit
Browse files Use React.autoBind by default.
Per our discussion - this is the general approach we'd like to take for
the public facing API.
var MyComponent = React.createClass({
render: function() {
return <div onClick={this.myCallback} />;
},
myCallback: function() {
}
});Changed paths6 files
First-parent comparisonsrc/core/ReactCompositeComponent.js ModifiedA src/core/ReactDoNotBindDeprecated.js AddedM src/core/ReactID.js ModifiedM src/core/__tests__/ReactBind-test.js ModifiedM src/core/__tests__/ReactComponentLifeCycle-test.js ModifiedM src/core/__tests__/ReactCompositeComponent-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…