Fix ExecutionEnvironment.canUseDOM for IE8.
cpojer committed
Jun 5, 2014 at 12:44 UTC
eebcf9f888b8a8fc3ed1f31c2789584a235aa089
1 file changed
+3
-2
src/vendor/core/ExecutionEnvironment.js
+3
-2
@@ -20,10 +20,11 @@
20
21
"use strict";
22
23
-var canUseDOM =
23
+var canUseDOM = !!(
24
typeof window !== 'undefined' &&
25
window.document &&
26
- typeof window.document.createElement === 'function';
26
+ window.document.createElement
27
+);
28
29
/**
30
* Simple, lightweight module assisting with the detection and context of