Skip to content

Commit

Permalink
Use correct reference to DOCUMENT_FRAGMENT_NODE
Browse files Browse the repository at this point in the history
I neglected this when rebasing.
  • Loading branch information
nhunzaker committed Apr 25, 2017
1 parent 7ccd93c commit 1ad7e85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/renderers/dom/fiber/ReactDOMFiberComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ if (__DEV__) {
}

function getDocument(rootContainerElement) {
var isDocumentFragment = rootContainerElement.nodeType === DOC_FRAGMENT_TYPE;
var isDocumentFragment =
rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;

var doc = isDocumentFragment
? rootContainerElement
Expand Down
4 changes: 2 additions & 2 deletions src/renderers/dom/shared/ReactBrowserEventEmitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ var ReactBrowserEventEmitter = Object.assign({}, ReactEventEmitterMixin, {
if (localOnly.hasOwnProperty(dependency)) {
ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(
dependency,
topEventMapping[dependency],
topLevelTypes[dependency],
node,
);
} else if (dependency === 'topWheel') {
Expand Down Expand Up @@ -263,7 +263,7 @@ var ReactBrowserEventEmitter = Object.assign({}, ReactEventEmitterMixin, {
);
}
isDocListening.topClose = true;
} else if (topEventMapping.hasOwnProperty(dependency)) {
} else if (topLevelTypes.hasOwnProperty(dependency)) {
ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(
dependency,
topLevelTypes[dependency],
Expand Down

0 comments on commit 1ad7e85

Please sign in to comment.