Merge pull request #2481 from mjul/fix-typos

Fix some minor typos in doc comments / code comments.
This commit is contained in:
Paul O’Shannessy
2014-11-07 16:58:49 -08:00
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ ReactDOMComponent.Mixin = {
// superfluous reconcile. It's possible for state to be mutable but such
// change should trigger an update of the owner which would recreate
// the element. We explicitly check for the existence of an owner since
// it's possible for a element created outside a composite to be
// it's possible for an element created outside a composite to be
// deeply mutated and reused.
return;
}
+1 -1
View File
@@ -366,7 +366,7 @@ var ReactMount = {
typeof nextElement === 'function' ?
' Instead of passing a component class, make sure to instantiate ' +
'it by passing it to React.createElement.' :
// Check if it quacks like a element
// Check if it quacks like an element
typeof nextElement.props !== "undefined" ?
' This may be caused by unintentionally loading two independent ' +
'copies of React.' :
+2 -2
View File
@@ -187,7 +187,7 @@ var ReactComponent = {
'`render` method to pass the correct value as props to the component ' +
'where it is created.'
);
// This is a deoptimized path. We optimize for always having a element.
// This is a deoptimized path. We optimize for always having an element.
// This creates an extra internal element.
this._pendingElement = ReactElement.cloneAndReplaceProps(
this._pendingElement || this._currentElement,
@@ -205,7 +205,7 @@ var ReactComponent = {
* @internal
*/
_setPropsInternal: function(partialProps, callback) {
// This is a deoptimized path. We optimize for always having a element.
// This is a deoptimized path. We optimize for always having an element.
// This creates an extra internal element.
var element = this._pendingElement || this._currentElement;
this._pendingElement = ReactElement.cloneAndReplaceProps(
+1 -1
View File
@@ -175,7 +175,7 @@ var OrderedMapMethods = {
/**
* Returns the object for a given key, or `undefined` if not present. To
* distinguish a undefined entry vs not being in the set, use `has()`.
* distinguish an undefined entry vs not being in the set, use `has()`.
*
* @param {string} key String key to lookup the value for.
* @return {Object?} Object at key `key`, or undefined if not in map.