Skip to content

Commit

Permalink
Changed to !document.documentMode (#7594)
Browse files Browse the repository at this point in the history
  • Loading branch information
tedpowers authored and aweary committed Aug 29, 2016
1 parent a3e576e commit 8397ef5
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 @@ -81,7 +81,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 @@ -165,7 +165,7 @@ if (ExecutionEnvironment.canUseDOM) {
// IE9 claims to support the input event but fails to trigger it when
// deleting text, so we ignore its input events.
isInputEventSupported = isEventSupported('input') && (
!('documentMode' in document) || document.documentMode > 9
!document.documentMode || document.documentMode > 9
);
}

Expand Down

0 comments on commit 8397ef5

Please sign in to comment.