Skip to content

Commit 7af9af6

Browse files
committed
Cleanup after #8353
1 parent 0c885af commit 7af9af6

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

src/renderers/dom/stack/client/__tests__/ReactDOM-test.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
var React = require('React');
1515
var ReactDOM = require('ReactDOM');
1616
var ReactTestUtils = require('ReactTestUtils');
17-
var div = React.createFactory('div');
1817

1918
describe('ReactDOM', () => {
2019
// TODO: uncomment this test once we can run in phantom, which
@@ -54,15 +53,15 @@ describe('ReactDOM', () => {
5453

5554
it('should allow children to be passed as an argument', () => {
5655
var argDiv = ReactTestUtils.renderIntoDocument(
57-
div(null, 'child')
56+
React.DOM.div(null, 'child')
5857
);
5958
var argNode = ReactDOM.findDOMNode(argDiv);
6059
expect(argNode.innerHTML).toBe('child');
6160
});
6261

6362
it('should overwrite props.children with children argument', () => {
6463
var conflictDiv = ReactTestUtils.renderIntoDocument(
65-
div({children: 'fakechild'}, 'child')
64+
React.DOM.div({children: 'fakechild'}, 'child')
6665
);
6766
var conflictNode = ReactDOM.findDOMNode(conflictDiv);
6867
expect(conflictNode.innerHTML).toBe('child');

src/renderers/noop/ReactNoop.js

-2
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,6 @@ var ReactNoop = {
270270

271271
syncUpdates: NoopRenderer.syncUpdates,
272272

273-
isCommitting: () => isCommitting,
274-
275273
// Logs the current state of the tree.
276274
dumpTree(rootID : string = DEFAULT_ROOT_ID) {
277275
const root = roots.get(rootID);

src/renderers/shared/fiber/ReactFiberScheduler.js

-4
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ module.exports = function<T, P, I, TI, C>(config : HostConfig<T, P, I, TI, C>) {
8888
// Need this to prevent recursion while in a Task loop.
8989
let isPerformingTaskWork : boolean = false;
9090

91-
// We'll only prepare/reset on the outermost commit even when a setState
92-
// callback causes another synchronous rerender
93-
let isCommitting : boolean = false;
94-
9591
// The next work in progress fiber that we're currently working on.
9692
let nextUnitOfWork : ?Fiber = null;
9793
let nextPriorityLevel : PriorityLevel = NoWork;

0 commit comments

Comments
 (0)