From e73900dad48438c2e613c320220f495f27e99c53 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Wed, 20 Nov 2013 14:04:10 -0800 Subject: [PATCH] Remove rootNode from componentDidMount and componentDidUpdate We can already access the DOM node using `this.getDOMNode()`. Passing it as an argument was a bad decision. Previous API: ``` componentDidMount(DOMElement rootNode) componentDidUpdate(object prevProps, object prevState, object prevContext, DOMElement rootNode) ``` Next API: ``` componentDidMount() componentDidUpdate(object prevProps, object prevState, object prevContext) ``` --- src/core/ReactMountReady.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ReactMountReady.js b/src/core/ReactMountReady.js index de349d347b05f..c3d4fb6adbd1b 100644 --- a/src/core/ReactMountReady.js +++ b/src/core/ReactMountReady.js @@ -66,7 +66,7 @@ mixInto(ReactMountReady, { for (var i = 0, l = queue.length; i < l; i++) { var component = queue[i].component; var callback = queue[i].callback; - callback.call(component, component.getDOMNode()); + callback.call(component); } queue.length = 0; }