Skip to content

Commit

Permalink
Changed to !document.documentMode (#7594)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8397ef5)
  • Loading branch information
tedpowers authored and zpao committed Sep 15, 2016
1 parent b445b26 commit 92cfbf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderers/dom/client/eventPlugins/ChangeEventPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var doesChangeEventBubble = false;
if (ExecutionEnvironment.canUseDOM) {
// See `handleChange` comment below
doesChangeEventBubble = isEventSupported('change') && (
!('documentMode' in document) || document.documentMode > 8
!document.documentMode || document.documentMode > 8
);
}

Expand Down Expand Up @@ -149,7 +149,7 @@ if (ExecutionEnvironment.canUseDOM) {
// IE10+ fire input events to often, such when a placeholder
// changes or when an input with a placeholder is focused.
isInputEventSupported = isEventSupported('input') && (
!('documentMode' in document) || document.documentMode > 11
!document.documentMode || document.documentMode > 11
);
}

Expand Down

0 comments on commit 92cfbf1

Please sign in to comment.