@samitouri / QOS-React-2 / commits / 0c1eca7dfc

fix doc comments and typos

Mert Kahyaoğlu committed Mar 20, 2015 at 18:21 UTC 0c1eca7dfcf0e4375f7cfe1164823547fee1ad01
1 file changed +10 -1
src/browser/ui/ReactDOMComponent.js
+10 -1
@@ -157,7 +157,7 @@ var voidElementTags = assign({
157 'menuitem': true
158 }, omittedCloseTags);
159
160 -// We accept any tag to be rendered but since this gets injected into abitrary
160 +// We accept any tag to be rendered but since this gets injected into arbitrary
161 // HTML, we want to make sure that it's a safe tag.
162 // http://www.w3.org/TR/REC-xml/#NT-Name
163
@@ -209,6 +209,7 @@ ReactDOMComponent.Mixin = {
209 * @internal
210 * @param {string} rootID The root DOM ID for this node.
211 * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
212 + * @param {object} context
213 * @return {string} The computed markup.
214 */
215 mountComponent: function(rootID, transaction, context) {
@@ -323,6 +324,14 @@ ReactDOMComponent.Mixin = {
324 }
325 },
326
327 + /**
328 + * Receives a next element and updates the component.
329 + *
330 + * @internal
331 + * @param {ReactElement} nextElement
332 + * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
333 + * @param {object} context
334 + */
335 receiveComponent: function(nextElement, transaction, context) {
336 var prevElement = this._currentElement;
337 this._currentElement = nextElement;