Skip to content

Commit

Permalink
Merge pull request #450 from cujojs/improve-isnode-check
Browse files Browse the repository at this point in the history
Switch isNode check to avoid problem with webpack
  • Loading branch information
briancavalier committed Apr 27, 2015
2 parents 3f030f9 + 5c84571 commit 4e7854b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ define(function(require) {
};

function isNode () {
return typeof process !== 'undefined' && process !== null &&
typeof process.nextTick === 'function';
return typeof process !== 'undefined' &&
Object.prototype.toString.call(process) === '[object process]';
}

function hasMutationObserver () {
Expand Down

0 comments on commit 4e7854b

Please sign in to comment.