mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #2481 from mjul/fix-typos
Fix some minor typos in doc comments / code comments.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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.' :
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user