Skip to content

Commit 4442dec

Browse files
author
Alex Mourzina
committed
setImmediate fix for global context
1 parent 618faca commit 4442dec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ try {
1919
// Only add setZeroTimeout to the window object, and hide everything
2020
// else in a closure.
2121

22-
if(!window.setImmediate) {
22+
if(typeof setImmediate =='undefined') {
2323
(function () {
2424
var timeouts = [];
2525
var messageName = "zero-timeout-message";

0 commit comments

Comments
 (0)