DOMIDOperations -> BackendIDOperations
Pete Hunt committed
Feb 5, 2014 at 19:44 UTC
73b4f954f29f1f61c4e0cbe18dd72f7621f668f4
8 files changed
+11
-11
src/browser/ReactComponentBrowserEnvironment.js
+1
-1
@@ -60,7 +60,7 @@ var ReactComponentBrowserEnvironment = {
60
61
ReactReconcileTransaction: ReactReconcileTransaction,
62
63
- DOMIDOperations: ReactDOMIDOperations,
63
+ BackendIDOperations: ReactDOMIDOperations,
64
65
/**
66
* If a particular environment requires that some resources be cleaned up,
src/browser/ReactDOMComponent.js
+4
-4
@@ -269,7 +269,7 @@ ReactDOMComponent.Mixin = {
269
} else if (
270
DOMProperty.isStandardName[propKey] ||
271
DOMProperty.isCustomAttribute(propKey)) {
272
- ReactComponent.DOMIDOperations.deletePropertyByID(
272
+ ReactComponent.BackendIDOperations.deletePropertyByID(
273
this._rootNodeID,
274
propKey
275
);
@@ -311,7 +311,7 @@ ReactDOMComponent.Mixin = {
311
} else if (
312
DOMProperty.isStandardName[propKey] ||
313
DOMProperty.isCustomAttribute(propKey)) {
314
- ReactComponent.DOMIDOperations.updatePropertyByID(
314
+ ReactComponent.BackendIDOperations.updatePropertyByID(
315
this._rootNodeID,
316
propKey,
317
nextProp
@@ -319,7 +319,7 @@ ReactDOMComponent.Mixin = {
319
}
320
}
321
if (styleUpdates) {
322
- ReactComponent.DOMIDOperations.updateStylesByID(
322
+ ReactComponent.BackendIDOperations.updateStylesByID(
323
this._rootNodeID,
324
styleUpdates
325
);
@@ -368,7 +368,7 @@ ReactDOMComponent.Mixin = {
368
}
369
} else if (nextHtml != null) {
370
if (lastHtml !== nextHtml) {
371
- ReactComponent.DOMIDOperations.updateInnerHTMLByID(
371
+ ReactComponent.BackendIDOperations.updateInnerHTMLByID(
372
this._rootNodeID,
373
nextHtml
374
);
src/browser/ReactDOMIDOperations.js
+1
-1
@@ -53,7 +53,7 @@ var useWhitespaceWorkaround;
53
54
/**
55
* Operations used to process updates to DOM nodes. This is made injectable via
56
- * `ReactComponent.DOMIDOperations`.
56
+ * `ReactComponent.BackendIDOperations`.
57
*/
58
var ReactDOMIDOperations = {
59
src/browser/ReactTextComponent.js
+1
-1
@@ -82,7 +82,7 @@ mixInto(ReactTextComponent, {
82
var nextProps = nextComponent.props;
83
if (nextProps.text !== this.props.text) {
84
this.props.text = nextProps.text;
85
- ReactComponent.DOMIDOperations.updateTextContentByID(
85
+ ReactComponent.BackendIDOperations.updateTextContentByID(
86
this._rootNodeID,
87
nextProps.text
88
);
src/browser/__tests__/ReactDOMIDOperations-test.js
+1
-1
@@ -52,7 +52,7 @@ describe('ReactDOMIDOperations', function() {
52
spyOn(ReactMount, "getNode").andReturn(stubNode);
53
54
var html = '\n \t <span> \n testContent \t </span> \n \t';
55
-
55
+
56
ReactDOMIDOperations.updateInnerHTMLByID(
57
'testID',
58
html
src/core/ReactComponent.js
+1
-1
@@ -202,7 +202,7 @@ var ReactComponent = {
202
*
203
* @internal
204
*/
205
- DOMIDOperations: ReactComponentEnvironment.DOMIDOperations,
205
+ BackendIDOperations: ReactComponentEnvironment.BackendIDOperations,
206
207
/**
208
* Optionally injectable environment dependent cleanup hook. (server vs.
src/core/ReactCompositeComponent.js
+1
-1
@@ -1112,7 +1112,7 @@ var ReactCompositeComponentMixin = {
1112
transaction,
1113
this._mountDepth + 1
1114
);
1115
- ReactComponent.DOMIDOperations.dangerouslyReplaceNodeWithMarkupByID(
1115
+ ReactComponent.BackendIDOperations.dangerouslyReplaceNodeWithMarkupByID(
1116
prevComponentID,
1117
nextMarkup
1118
);
src/core/ReactMultiChild.js
+1
-1
@@ -141,7 +141,7 @@ function enqueueTextContent(parentID, textContent) {
141
*/
142
function processQueue() {
143
if (updateQueue.length) {
144
- ReactComponent.DOMIDOperations.dangerouslyProcessChildrenUpdates(
144
+ ReactComponent.BackendIDOperations.dangerouslyProcessChildrenUpdates(
145
updateQueue,
146
markupQueue
147
);