renamed ReactOnDOMReady module to ReactMountReady
fix renamed ReactOnDOMReady module to ReactMountReady
Samangan committed
Oct 5, 2013 at 01:18 UTC
84d8e1841a72a94a2f2794aa941439a94c6c2df3
3 files changed
+19
-19
src/core/ReactCompositeComponent.js
+2
-2
@@ -579,7 +579,7 @@ var ReactCompositeComponentMixin = {
579
mountDepth + 1
580
);
581
if (this.componentDidMount) {
582
- transaction.getReactOnDOMReady().enqueue(this, this.componentDidMount);
582
+ transaction.getReactMountReady().enqueue(this, this.componentDidMount);
583
}
584
return markup;
585
}
@@ -765,7 +765,7 @@ var ReactCompositeComponentMixin = {
765
this.updateComponent(transaction, prevProps, prevState);
766
767
if (this.componentDidUpdate) {
768
- transaction.getReactOnDOMReady().enqueue(
768
+ transaction.getReactMountReady().enqueue(
769
this,
770
this.componentDidUpdate.bind(this, prevProps, prevState)
771
);
src/core/ReactMountReady.js
renamed
+7
-7
@@ -13,7 +13,7 @@
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
- * @providesModule ReactOnDOMReady
16
+ * @providesModule ReactMountReady
17
*/
18
19
"use strict";
@@ -27,18 +27,18 @@ var mixInto = require('mixInto');
27
* be notified when their DOM representations are available for use.
28
*
29
* This implements `PooledClass`, so you should never need to instantiate this.
30
- * Instead, use `ReactOnDOMReady.getPooled()`.
30
+ * Instead, use `ReactMountReady.getPooled()`.
31
*
32
* @param {?array<function>} initialCollection
33
- * @class ReactOnDOMReady
33
+ * @class ReactMountReady
34
* @implements PooledClass
35
* @internal
36
*/
37
-function ReactOnDOMReady(initialCollection) {
37
+function ReactMountReady(initialCollection) {
38
this._queue = initialCollection || null;
39
}
40
41
-mixInto(ReactOnDOMReady, {
41
+mixInto(ReactMountReady, {
42
43
/**
44
* Enqueues a callback to be invoked when `notifyAll` is invoked. This is used
@@ -90,6 +90,6 @@ mixInto(ReactOnDOMReady, {
90
91
});
92
93
-PooledClass.addPoolingTo(ReactOnDOMReady);
93
+PooledClass.addPoolingTo(ReactMountReady);
94
95
-module.exports = ReactOnDOMReady;
95
+module.exports = ReactMountReady;
src/core/ReactReconcileTransaction.js
+10
-10
@@ -23,7 +23,7 @@ var ExecutionEnvironment = require('ExecutionEnvironment');
23
var PooledClass = require('PooledClass');
24
var ReactEventEmitter = require('ReactEventEmitter');
25
var ReactInputSelection = require('ReactInputSelection');
26
-var ReactOnDOMReady = require('ReactOnDOMReady');
26
+var ReactMountReady = require('ReactMountReady');
27
var Transaction = require('Transaction');
28
29
var mixInto = require('mixInto');
@@ -69,7 +69,7 @@ var EVENT_SUPPRESSION = {
69
};
70
71
/**
72
- * Provides a `ReactOnDOMReady` queue for collecting `onDOMReady` callbacks
72
+ * Provides a `ReactMountReady` queue for collecting `onDOMReady` callbacks
73
* during the performing of the transaction.
74
*/
75
var ON_DOM_READY_QUEUEING = {
@@ -77,14 +77,14 @@ var ON_DOM_READY_QUEUEING = {
77
* Initializes the internal `onDOMReady` queue.
78
*/
79
initialize: function() {
80
- this.reactOnDOMReady.reset();
80
+ this.reactMountReady.reset();
81
},
82
83
/**
84
* After DOM is flushed, invoke all registered `onDOMReady` callbacks.
85
*/
86
close: function() {
87
- this.reactOnDOMReady.notifyAll();
87
+ this.reactMountReady.notifyAll();
88
}
89
};
90
@@ -115,7 +115,7 @@ var TRANSACTION_WRAPPERS = [
115
*/
116
function ReactReconcileTransaction() {
117
this.reinitializeTransaction();
118
- this.reactOnDOMReady = ReactOnDOMReady.getPooled(null);
118
+ this.reactMountReady = ReactMountReady.getPooled(null);
119
}
120
121
var Mixin = {
@@ -136,10 +136,10 @@ var Mixin = {
136
137
/**
138
* @return {object} The queue to collect `onDOMReady` callbacks with.
139
- * TODO: convert to ReactOnDOMReady
139
+ * TODO: convert to ReactMountReady
140
*/
141
- getReactOnDOMReady: function() {
142
- return this.reactOnDOMReady;
141
+ getReactMountReady: function() {
142
+ return this.reactMountReady;
143
},
144
145
/**
@@ -147,8 +147,8 @@ var Mixin = {
147
* instance to be resused.
148
*/
149
destructor: function() {
150
- ReactOnDOMReady.release(this.reactOnDOMReady);
151
- this.reactOnDOMReady = null;
150
+ ReactMountReady.release(this.reactMountReady);
151
+ this.reactMountReady = null;
152
}
153
};
154