Fix some minor typos in doc comments / code comments.
Martin Jul committed
Nov 7, 2014 at 18:07 UTC
042c6c794c12b9f8d7cc7470736db896a5fc12a3
4 files changed
+5
-5
src/browser/ui/ReactDOMComponent.js
+1
-1
@@ -285,7 +285,7 @@ ReactDOMComponent.Mixin = {
285
// superfluous reconcile. It's possible for state to be mutable but such
286
// change should trigger an update of the owner which would recreate
287
// the element. We explicitly check for the existence of an owner since
288
- // it's possible for a element created outside a composite to be
288
+ // it's possible for an element created outside a composite to be
289
// deeply mutated and reused.
290
return;
291
}
src/browser/ui/ReactMount.js
+1
-1
@@ -366,7 +366,7 @@ var ReactMount = {
366
typeof nextElement === 'function' ?
367
' Instead of passing a component class, make sure to instantiate ' +
368
'it by passing it to React.createElement.' :
369
- // Check if it quacks like a element
369
+ // Check if it quacks like an element
370
typeof nextElement.props !== "undefined" ?
371
' This may be caused by unintentionally loading two independent ' +
372
'copies of React.' :
src/core/ReactComponent.js
+2
-2
@@ -187,7 +187,7 @@ var ReactComponent = {
187
'`render` method to pass the correct value as props to the component ' +
188
'where it is created.'
189
);
190
- // This is a deoptimized path. We optimize for always having a element.
190
+ // This is a deoptimized path. We optimize for always having an element.
191
// This creates an extra internal element.
192
this._pendingElement = ReactElement.cloneAndReplaceProps(
193
this._pendingElement || this._currentElement,
@@ -205,7 +205,7 @@ var ReactComponent = {
205
* @internal
206
*/
207
_setPropsInternal: function(partialProps, callback) {
208
- // This is a deoptimized path. We optimize for always having a element.
208
+ // This is a deoptimized path. We optimize for always having an element.
209
// This creates an extra internal element.
210
var element = this._pendingElement || this._currentElement;
211
this._pendingElement = ReactElement.cloneAndReplaceProps(
src/utils/OrderedMap.js
+1
-1
@@ -175,7 +175,7 @@ var OrderedMapMethods = {
175
176
/**
177
* Returns the object for a given key, or `undefined` if not present. To
178
- * distinguish a undefined entry vs not being in the set, use `has()`.
178
+ * distinguish an undefined entry vs not being in the set, use `has()`.
179
*
180
* @param {string} key String key to lookup the value for.
181
* @return {Object?} Object at key `key`, or undefined if not in map.