mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
DOMIDOperations -> BackendIDOperations
This commit is contained in:
committed by
Paul O’Shannessy
parent
4ebdb2c0ac
commit
73b4f954f2
@@ -60,7 +60,7 @@ var ReactComponentBrowserEnvironment = {
|
||||
|
||||
ReactReconcileTransaction: ReactReconcileTransaction,
|
||||
|
||||
DOMIDOperations: ReactDOMIDOperations,
|
||||
BackendIDOperations: ReactDOMIDOperations,
|
||||
|
||||
/**
|
||||
* If a particular environment requires that some resources be cleaned up,
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
@@ -52,7 +52,7 @@ describe('ReactDOMIDOperations', function() {
|
||||
spyOn(ReactMount, "getNode").andReturn(stubNode);
|
||||
|
||||
var html = '\n \t <span> \n testContent \t </span> \n \t';
|
||||
|
||||
|
||||
ReactDOMIDOperations.updateInnerHTMLByID(
|
||||
'testID',
|
||||
html
|
||||
|
||||
@@ -202,7 +202,7 @@ var ReactComponent = {
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
DOMIDOperations: ReactComponentEnvironment.DOMIDOperations,
|
||||
BackendIDOperations: ReactComponentEnvironment.BackendIDOperations,
|
||||
|
||||
/**
|
||||
* Optionally injectable environment dependent cleanup hook. (server vs.
|
||||
|
||||
@@ -1112,7 +1112,7 @@ var ReactCompositeComponentMixin = {
|
||||
transaction,
|
||||
this._mountDepth + 1
|
||||
);
|
||||
ReactComponent.DOMIDOperations.dangerouslyReplaceNodeWithMarkupByID(
|
||||
ReactComponent.BackendIDOperations.dangerouslyReplaceNodeWithMarkupByID(
|
||||
prevComponentID,
|
||||
nextMarkup
|
||||
);
|
||||
|
||||
@@ -141,7 +141,7 @@ function enqueueTextContent(parentID, textContent) {
|
||||
*/
|
||||
function processQueue() {
|
||||
if (updateQueue.length) {
|
||||
ReactComponent.DOMIDOperations.dangerouslyProcessChildrenUpdates(
|
||||
ReactComponent.BackendIDOperations.dangerouslyProcessChildrenUpdates(
|
||||
updateQueue,
|
||||
markupQueue
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user