@samitouri / QOS-React-2 / commits / 7a1d87bd33

A couple small style fixups that were missed in recent PRs

Paul O’Shannessy committed Dec 18, 2015 at 11:27 UTC 7a1d87bd33df9393cfd8227a1c12730352ed8328
2 files changed +5 -6
src/renderers/shared/reconciler/ReactCompositeComponent.js
+4 -5
@@ -197,13 +197,12 @@ var ReactCompositeComponentMixin = {
197
198 var propsMutated = inst.props !== publicProps;
199 var componentName =
200 - Component.displayName || Component.name || 'Component';
200 + Component.displayName || Component.name || 'Component';
201
202 warning(
203 - typeof inst.props === 'undefined' ||
204 - !propsMutated,
203 + typeof inst.props === 'undefined' || !propsMutated,
204 '%s(...): When calling super() in `%s`, make sure to pass ' +
206 - 'up the same props that your component\'s constructor was passed.',
205 + 'up the same props that your component\'s constructor was passed.',
206 componentName, componentName
207 );
208 }
@@ -328,7 +327,7 @@ var ReactCompositeComponentMixin = {
327 this._instance.state = this._processPendingState(this._instance.props, this._instance.context);
328 }
329 checkpoint = transaction.checkpoint();
331 -
330 +
331 this._renderedComponent.unmountComponent();
332 transaction.rollback(checkpoint);
333
src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js
+1 -1
@@ -1193,7 +1193,7 @@ describe('ReactCompositeComponent', function() {
1193 expect(console.error.calls.length).toBe(1);
1194 expect(console.error.argsForCall[0][0]).toContain(
1195 'Foo(...): When calling super() in `Foo`, make sure to pass ' +
1196 - 'up the same props that your component\'s constructor was passed.'
1196 + 'up the same props that your component\'s constructor was passed.'
1197 );
1198
1199 });