dillon1000/react

Commit

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() {
      }
    });
Browse files
Changed paths6 files
First-parent comparison
M src/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…