Skip to content

Commit

Permalink
Fix ExecutionEnvironment.canUseDOM for IE8.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Jun 5, 2014
1 parent 41ed67d commit eebcf9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vendor/core/ExecutionEnvironment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eebcf9f

Please sign in to comment.