DOMIDOperations -> BackendIDOperations

This commit is contained in:
Pete Hunt
2014-02-05 19:47:54 -08:00
committed by Paul O’Shannessy
parent 4ebdb2c0ac
commit 73b4f954f2
8 changed files with 11 additions and 11 deletions
@@ -60,7 +60,7 @@ var ReactComponentBrowserEnvironment = {
ReactReconcileTransaction: ReactReconcileTransaction,
DOMIDOperations: ReactDOMIDOperations,
BackendIDOperations: ReactDOMIDOperations,
/**
* If a particular environment requires that some resources be cleaned up,
+4 -4
View File
@@ -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
);
+1 -1
View File
@@ -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 = {
+1 -1
View File
@@ -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
+1 -1
View File
@@ -202,7 +202,7 @@ var ReactComponent = {
*
* @internal
*/
DOMIDOperations: ReactComponentEnvironment.DOMIDOperations,
BackendIDOperations: ReactComponentEnvironment.BackendIDOperations,
/**
* Optionally injectable environment dependent cleanup hook. (server vs.
+1 -1
View File
@@ -1112,7 +1112,7 @@ var ReactCompositeComponentMixin = {
transaction,
this._mountDepth + 1
);
ReactComponent.DOMIDOperations.dangerouslyReplaceNodeWithMarkupByID(
ReactComponent.BackendIDOperations.dangerouslyReplaceNodeWithMarkupByID(
prevComponentID,
nextMarkup
);
+1 -1
View File
@@ -141,7 +141,7 @@ function enqueueTextContent(parentID, textContent) {
*/
function processQueue() {
if (updateQueue.length) {
ReactComponent.DOMIDOperations.dangerouslyProcessChildrenUpdates(
ReactComponent.BackendIDOperations.dangerouslyProcessChildrenUpdates(
updateQueue,
markupQueue
);