React->ReactDOM in src/

This commit is contained in:
Jim committed 2015-10-05 16:29:33 -07:00
1 parent 94ccda8543
commit 5a9dea00b9
3 files changed
+4 -4

No files matched your search

@@ -37,7 +37,7 @@ describe('ReactDOM', function() {
return <form><input type="submit" value="Submit" /></form>;
},
componentDidMount: function() {
form = React.findDOMNode(this);
form = ReactDOM.findDOMNode(this);
}
});
var instance = ReactTestUtils.renderIntoDocument(<Parent />);
@@ -503,8 +503,8 @@ describe('ReactCompositeComponent', function() {
var Inner = React.createClass({
componentWillUnmount: function() {
// It's important that ReactMount.purgeID is called after any component
// lifecycle methods, because a componentWillMount implementation is
// likely to call React.findDOMNode(this), which will repopulate the
// lifecycle methods, because a componentWillUnmount implementation is
// likely to call ReactDOM.findDOMNode(this), which will repopulate the
// node cache after it's been cleared, causing a memory leak.
expect(ReactMount.purgeID.calls.length).toBe(0);
innerUnmounted = true;
+1 -1
View File
@@ -33,7 +33,7 @@ var React = require('React');
*
* var instances = renderHierarchy(
* function(ComponentA[, ComponentB, ComponentC]) {
* React.render(<ComponentA />, ...);
* ReactDOM.render(<ComponentA />, ...);
* })
* );
* instances[0][0]; // First return value of first render method.