diff --git a/src/browser/ReactComponentBrowserEnvironment.js b/src/browser/ReactComponentBrowserEnvironment.js index 519b91c800..c733e6ec47 100644 --- a/src/browser/ReactComponentBrowserEnvironment.js +++ b/src/browser/ReactComponentBrowserEnvironment.js @@ -60,7 +60,7 @@ var ReactComponentBrowserEnvironment = { ReactReconcileTransaction: ReactReconcileTransaction, - DOMIDOperations: ReactDOMIDOperations, + BackendIDOperations: ReactDOMIDOperations, /** * If a particular environment requires that some resources be cleaned up, diff --git a/src/browser/ReactDOMComponent.js b/src/browser/ReactDOMComponent.js index f16a13aab6..8ef1fb884e 100644 --- a/src/browser/ReactDOMComponent.js +++ b/src/browser/ReactDOMComponent.js @@ -269,7 +269,7 @@ ReactDOMComponent.Mixin = { } else if ( DOMProperty.isStandardName[propKey] || DOMProperty.isCustomAttribute(propKey)) { - ReactComponent.DOMIDOperations.deletePropertyByID( + ReactComponent.BackendIDOperations.deletePropertyByID( this._rootNodeID, propKey ); @@ -311,7 +311,7 @@ ReactDOMComponent.Mixin = { } else if ( DOMProperty.isStandardName[propKey] || DOMProperty.isCustomAttribute(propKey)) { - ReactComponent.DOMIDOperations.updatePropertyByID( + ReactComponent.BackendIDOperations.updatePropertyByID( this._rootNodeID, propKey, nextProp @@ -319,7 +319,7 @@ ReactDOMComponent.Mixin = { } } if (styleUpdates) { - ReactComponent.DOMIDOperations.updateStylesByID( + ReactComponent.BackendIDOperations.updateStylesByID( this._rootNodeID, styleUpdates ); @@ -368,7 +368,7 @@ ReactDOMComponent.Mixin = { } } else if (nextHtml != null) { if (lastHtml !== nextHtml) { - ReactComponent.DOMIDOperations.updateInnerHTMLByID( + ReactComponent.BackendIDOperations.updateInnerHTMLByID( this._rootNodeID, nextHtml ); diff --git a/src/browser/ReactDOMIDOperations.js b/src/browser/ReactDOMIDOperations.js index 2a89f7ec91..2ee286a1cf 100644 --- a/src/browser/ReactDOMIDOperations.js +++ b/src/browser/ReactDOMIDOperations.js @@ -53,7 +53,7 @@ var useWhitespaceWorkaround; /** * Operations used to process updates to DOM nodes. This is made injectable via - * `ReactComponent.DOMIDOperations`. + * `ReactComponent.BackendIDOperations`. */ var ReactDOMIDOperations = { diff --git a/src/browser/ReactTextComponent.js b/src/browser/ReactTextComponent.js index 63f5448482..79114b9e7b 100644 --- a/src/browser/ReactTextComponent.js +++ b/src/browser/ReactTextComponent.js @@ -82,7 +82,7 @@ mixInto(ReactTextComponent, { var nextProps = nextComponent.props; if (nextProps.text !== this.props.text) { this.props.text = nextProps.text; - ReactComponent.DOMIDOperations.updateTextContentByID( + ReactComponent.BackendIDOperations.updateTextContentByID( this._rootNodeID, nextProps.text ); diff --git a/src/browser/__tests__/ReactDOMIDOperations-test.js b/src/browser/__tests__/ReactDOMIDOperations-test.js index f6383d67af..991bf2182c 100644 --- a/src/browser/__tests__/ReactDOMIDOperations-test.js +++ b/src/browser/__tests__/ReactDOMIDOperations-test.js @@ -52,7 +52,7 @@ describe('ReactDOMIDOperations', function() { spyOn(ReactMount, "getNode").andReturn(stubNode); var html = '\n \t \n testContent \t \n \t'; - + ReactDOMIDOperations.updateInnerHTMLByID( 'testID', html diff --git a/src/core/ReactComponent.js b/src/core/ReactComponent.js index c3e6df3d7c..e85e11f1c7 100644 --- a/src/core/ReactComponent.js +++ b/src/core/ReactComponent.js @@ -202,7 +202,7 @@ var ReactComponent = { * * @internal */ - DOMIDOperations: ReactComponentEnvironment.DOMIDOperations, + BackendIDOperations: ReactComponentEnvironment.BackendIDOperations, /** * Optionally injectable environment dependent cleanup hook. (server vs. diff --git a/src/core/ReactCompositeComponent.js b/src/core/ReactCompositeComponent.js index 78cb8843b4..63b1e8358d 100644 --- a/src/core/ReactCompositeComponent.js +++ b/src/core/ReactCompositeComponent.js @@ -1112,7 +1112,7 @@ var ReactCompositeComponentMixin = { transaction, this._mountDepth + 1 ); - ReactComponent.DOMIDOperations.dangerouslyReplaceNodeWithMarkupByID( + ReactComponent.BackendIDOperations.dangerouslyReplaceNodeWithMarkupByID( prevComponentID, nextMarkup ); diff --git a/src/core/ReactMultiChild.js b/src/core/ReactMultiChild.js index 57819c1c21..e697ac6002 100644 --- a/src/core/ReactMultiChild.js +++ b/src/core/ReactMultiChild.js @@ -141,7 +141,7 @@ function enqueueTextContent(parentID, textContent) { */ function processQueue() { if (updateQueue.length) { - ReactComponent.DOMIDOperations.dangerouslyProcessChildrenUpdates( + ReactComponent.BackendIDOperations.dangerouslyProcessChildrenUpdates( updateQueue, markupQueue );