Merge pull request #3471 from mertkahyaoglu/master

fix doc comments and typos
This commit is contained in:
Ben Alpert 2015-03-20 10:02:49 -07:00
commit 70f16cc936
1 changed files with 10 additions and 1 deletions

View File

@ -157,7 +157,7 @@ var voidElementTags = assign({
'menuitem': true
}, omittedCloseTags);
// We accept any tag to be rendered but since this gets injected into abitrary
// We accept any tag to be rendered but since this gets injected into arbitrary
// HTML, we want to make sure that it's a safe tag.
// http://www.w3.org/TR/REC-xml/#NT-Name
@ -209,6 +209,7 @@ ReactDOMComponent.Mixin = {
* @internal
* @param {string} rootID The root DOM ID for this node.
* @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
* @param {object} context
* @return {string} The computed markup.
*/
mountComponent: function(rootID, transaction, context) {
@ -323,6 +324,14 @@ ReactDOMComponent.Mixin = {
}
},
/**
* Receives a next element and updates the component.
*
* @internal
* @param {ReactElement} nextElement
* @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
* @param {object} context
*/
receiveComponent: function(nextElement, transaction, context) {
var prevElement = this._currentElement;
this._currentElement = nextElement;