diff --git a/src/addons/transitions/ReactTransitionableChild.js b/src/addons/transitions/ReactTransitionableChild.js index 789248f57b..31d1b43984 100644 --- a/src/addons/transitions/ReactTransitionableChild.js +++ b/src/addons/transitions/ReactTransitionableChild.js @@ -132,7 +132,7 @@ var ReactTransitionableChild = React.createClass({ } }, - componentDidMount: function(node) { + componentDidMount: function() { if (this.props.enter) { this.transition('enter'); } diff --git a/src/core/__tests__/ReactDOM-test.js b/src/core/__tests__/ReactDOM-test.js index f4698dc7c5..a0d24e867e 100644 --- a/src/core/__tests__/ReactDOM-test.js +++ b/src/core/__tests__/ReactDOM-test.js @@ -46,8 +46,8 @@ describe('ReactDOM', function() { render: function() { return
; }, - componentDidMount: function(node) { - form = node; + componentDidMount: function() { + form = this.getDOMNode(); } }); var instance = ReactTestUtils.renderIntoDocument(); diff --git a/src/dom/components/ReactDOMForm.js b/src/dom/components/ReactDOMForm.js index 52383efb63..e34c954d00 100644 --- a/src/dom/components/ReactDOMForm.js +++ b/src/dom/components/ReactDOMForm.js @@ -40,11 +40,11 @@ var ReactDOMForm = ReactCompositeComponent.createClass({ return this.transferPropsTo(form(null, this.props.children)); }, - componentDidMount: function(node) { + componentDidMount: function() { ReactEventEmitter.trapBubbledEvent( EventConstants.topLevelTypes.topSubmit, 'submit', - node + this.getDOMNode() ); } }); diff --git a/src/dom/components/ReactDOMInput.js b/src/dom/components/ReactDOMInput.js index 86c99ea1d4..53ede21bc9 100644 --- a/src/dom/components/ReactDOMInput.js +++ b/src/dom/components/ReactDOMInput.js @@ -81,8 +81,8 @@ var ReactDOMInput = ReactCompositeComponent.createClass({ return input(props, this.props.children); }, - componentDidMount: function(rootNode) { - var id = ReactMount.getID(rootNode); + componentDidMount: function() { + var id = ReactMount.getID(this.getDOMNode()); instancesByReactID[id] = this; },