@samitouri / QOS-React / commits / c16ec5df13

fix misspellings in comments and tests (#8946)

* fix misspellings in comments and tests * revert change in docs/js/react-dom.js

Sean Gransee committed Feb 13, 2017 at 16:01 UTC c16ec5df137fbd96420935aa2bc0d2d678e11838
12 files changed +20 -19
docs/_css/bourbon/helpers/_linear-positions-parser.scss
+2 -2
@@ -11,7 +11,7 @@
11 $side: nth($pos, 2);
12
13 @if $length == 2 { // eg. to top
14 - // Swap for backwards compatability
14 + // Swap for backwards compatibility
15 $degree: _position-flipper(nth($pos, 2));
16 }
17 @else if $length == 3 { // eg. to top left
@@ -38,7 +38,7 @@
38 $spec: to $side $corner;
39 }
40 @else if $length == 1 {
41 - // Swap for backwards compatability
41 + // Swap for backwards compatibility
42 @if $type == string {
43 $degree: $pos;
44 $spec: to _position-flipper($pos);
fixtures/dom/public/react-loader.js
+1 -1
@@ -38,6 +38,6 @@ document.write('<script src="' + REACT_PATH + '"></script>');
38 if (version === 'local' || parseFloat(version, 10) > 0.13) {
39 document.write('<script src="' + DOM_PATH + '"></script>');
40 } else {
41 - // Aliasing React to ReactDOM for compatability.
41 + // Aliasing React to ReactDOM for compatibility.
42 document.write('<script>ReactDOM = React</script>');
43 }
scripts/error-codes/__tests__/invertObject-test.js
+1 -1
@@ -38,7 +38,7 @@ describe('invertObject', () => {
38 });
39 });
40
41 - it('should perserve the original order', () => {
41 + it('should preserve the original order', () => {
42 expect(Object.keys(invertObject({
43 a: '3',
44 b: '4',
scripts/fiber/tests-passing.txt
+1 -1
@@ -32,7 +32,7 @@ scripts/error-codes/__tests__/invertObject-test.js
32 * should return an empty object for an empty input
33 * should invert key-values
34 * should take the last value when there're duplications in vals
35 -* should perserve the original order
35 +* should preserve the original order
36
37 src/addons/__tests__/ReactComponentWithPureRenderMixin-test.js
38 * provides a default shouldComponentUpdate implementation
src/renderers/dom/fiber/ReactDOMFiberComponent.js
+1 -1
@@ -479,7 +479,7 @@ var ReactDOMFiberComponent = {
479 } else if (props.is) {
480 domElement = ownerDocument.createElement(type, props.is);
481 } else {
482 - // Separate else branch instead of using `props.is || undefined` above becuase of a Firefox bug.
482 + // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
483 // See discussion in https://github.com/facebook/react/pull/6896
484 // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
485 domElement = ownerDocument.createElement(type);
src/renderers/dom/stack/client/ReactDOMComponent.js
+1 -1
@@ -578,7 +578,7 @@ ReactDOMComponent.Mixin = {
578 } else if (props.is) {
579 el = ownerDocument.createElement(type, props.is);
580 } else {
581 - // Separate else branch instead of using `props.is || undefined` above becuase of a Firefox bug.
581 + // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
582 // See discussion in https://github.com/facebook/react/pull/6896
583 // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
584 el = ownerDocument.createElement(type);
src/renderers/native/ReactNativeAttributePayload.js
+1 -1
@@ -332,7 +332,7 @@ function diffProperties(
332 }
333
334 // An explicit value of undefined is treated as a null because it overrides
335 - // any other preceeding value.
335 + // any other preceding value.
336 if (typeof nextProp === 'undefined') {
337 nextProp = (null : any);
338 if (typeof prevProp === 'undefined') {
src/renderers/native/ReactNativeEventEmitter.js
+1 -1
@@ -189,7 +189,7 @@ var ReactNativeEventEmitter = {
189 if (__DEV__) {
190 warning(
191 false,
192 - 'A view is reporting that a touch occured on tag zero.'
192 + 'A view is reporting that a touch occurred on tag zero.'
193 );
194 }
195 } else {
src/renderers/shared/fiber/ReactFiberScheduler.js
+5 -4
@@ -231,7 +231,7 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(config : HostConfig<T, P,
231
232 // Before we start any new work, let's make sure that we have a fresh
233 // stack to work from.
234 - // TODO: This call is burried a bit too deep. It would be nice to have
234 + // TODO: This call is buried a bit too deep. It would be nice to have
235 // a single point which happens right before any new work and
236 // unfortunately this is it.
237 resetContextStack();
@@ -629,7 +629,7 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(config : HostConfig<T, P,
629 nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
630 }
631 if (nextUnitOfWork === null) {
632 - // If performUnitOfWork returns null, that means we just comitted
632 + // If performUnitOfWork returns null, that means we just committed
633 // a root. Normally we'd need to clear any errors that were scheduled
634 // during the commit phase. But we're already clearing errors, so
635 // we can continue.
@@ -696,7 +696,7 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(config : HostConfig<T, P,
696 nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
697 if (nextUnitOfWork === null) {
698 nextUnitOfWork = findNextUnitOfWork();
699 - // performUnitOfWork returned null, which means we just comitted a
699 + // performUnitOfWork returned null, which means we just committed a
700 // root. Clear any errors that were scheduled during the commit phase.
701 clearErrors();
702 }
@@ -746,8 +746,9 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(config : HostConfig<T, P,
746 } catch (error) {
747 // We caught an error during either the begin or complete phases.
748 const failedWork = nextUnitOfWork;
749 +
750 if (failedWork !== null) {
750 - // Reset the priority context to its value before reconcilation.
751 + // Reset the priority context to its value before reconciliation.
752 priorityContext = priorityContextBeforeReconciliation;
753
754 // "Capture" the error by finding the nearest boundary. If there is no
src/renderers/shared/fiber/ReactFiberUpdateQueue.js
+1 -1
@@ -210,7 +210,7 @@ function findInsertionPosition(queue, update) : Update | null {
210 // To solve this, in the case where the incoming update needs to be inserted
211 // into two different positions, we'll make a clone of the update and insert
212 // each copy into a separate queue. This forks the list while maintaining a
213 -// persistent stucture, because the update that is added to the work-in-progress
213 +// persistent structure, because the update that is added to the work-in-progress
214 // is always added to the front of the list.
215 //
216 // However, if incoming update is inserted into the same position of both lists,
src/renderers/shared/fiber/__tests__/ReactIncremental-test.js
+3 -3
@@ -502,7 +502,7 @@ describe('ReactIncremental', () => {
502
503 ops = [];
504
505 - // Interupt the rendering with a quick update. This should not touch the
505 + // Interrupt the rendering with a quick update. This should not touch the
506 // middle content.
507 ReactNoop.render(<Foo text="foo" text2="bar" step={0} />);
508 ReactNoop.flush();
@@ -528,7 +528,7 @@ describe('ReactIncremental', () => {
528
529 ops = [];
530
531 - // but we'll interupt it to render some higher priority work.
531 + // but we'll interrupt it to render some higher priority work.
532 // The middle content will bailout so it remains untouched.
533 ReactNoop.render(<Foo text="foo" text2="bar" step={1} />);
534 ReactNoop.flushDeferredPri(30);
@@ -694,7 +694,7 @@ describe('ReactIncremental', () => {
694
695 ops = [];
696
697 - // but we'll interupt it to render some higher priority work.
697 + // but we'll interrupt it to render some higher priority work.
698 // The middle content will bailout so it remains untouched.
699 ReactNoop.render(<Foo text="foo" step={1} />);
700 ReactNoop.flushDeferredPri(30);
src/renderers/shared/fiber/__tests__/ReactIncrementalSideEffects-test.js
+2 -2
@@ -406,7 +406,7 @@ describe('ReactIncrementalSideEffects', () => {
406 div(div(span('Hi'), span('foo'))),
407 ]);
408
409 - // The first Bar has already completed its update but we'll interupt it to
409 + // The first Bar has already completed its update but we'll interrupt it to
410 // render some higher priority work. The middle content will bailout so
411 // it remains untouched which means that it should reuse it next time.
412 ReactNoop.render(<Foo text="foo" step={1} />);
@@ -472,7 +472,7 @@ describe('ReactIncrementalSideEffects', () => {
472 div(div(span('Hi'), span('foo'))),
473 ]);
474
475 - // The first Bar has already completed its update but we'll interupt it to
475 + // The first Bar has already completed its update but we'll interrupt it to
476 // render some higher priority work. The middle content will bailout so
477 // it remains untouched which means that it should reuse it next time.
478 ReactNoop.render(<Foo text="foo" step={1} />);