From 2c70e8e4145418e722ac2b2d720f6a629d46c441 Mon Sep 17 00:00:00 2001 From: Brandon Dail Date: Fri, 23 Jun 2017 13:55:20 -0500 Subject: [PATCH] Use boolean assertion for documentMode check --- src/renderers/dom/client/eventPlugins/ChangeEventPlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/dom/client/eventPlugins/ChangeEventPlugin.js b/src/renderers/dom/client/eventPlugins/ChangeEventPlugin.js index 473aef5153562..5156db94d81bc 100644 --- a/src/renderers/dom/client/eventPlugins/ChangeEventPlugin.js +++ b/src/renderers/dom/client/eventPlugins/ChangeEventPlugin.js @@ -156,7 +156,7 @@ if (ExecutionEnvironment.canUseDOM) { isInputEventSupported = isEventSupported('input') && - (!('documentMode' in document) || document.documentMode > 9); + (!document.documentMode || document.documentMode > 9); } /**