From eebcf9f888b8a8fc3ed1f31c2789584a235aa089 Mon Sep 17 00:00:00 2001 From: cpojer Date: Thu, 5 Jun 2014 12:44:24 -0700 Subject: [PATCH] Fix ExecutionEnvironment.canUseDOM for IE8. --- src/vendor/core/ExecutionEnvironment.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vendor/core/ExecutionEnvironment.js b/src/vendor/core/ExecutionEnvironment.js index 2f7907dac1..0a376fba5c 100644 --- a/src/vendor/core/ExecutionEnvironment.js +++ b/src/vendor/core/ExecutionEnvironment.js @@ -20,10 +20,11 @@ "use strict"; -var canUseDOM = +var canUseDOM = !!( typeof window !== 'undefined' && window.document && - typeof window.document.createElement === 'function'; + window.document.createElement +); /** * Simple, lightweight module assisting with the detection and context of