From 6ffd18abe96161baaa4e45fcd31ef26b5681ce3c Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Tue, 18 Oct 2011 16:28:19 -0700 Subject: [PATCH] Fix `defer` for webkit in a webworker. --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 202706e4..1597ecc4 100644 --- a/lib/util.js +++ b/lib/util.js @@ -202,7 +202,7 @@ */ util.defer = function (fn) { - if (!util.ua.webkit) { + if (!util.ua.webkit || 'undefined' != typeof importScripts) { return fn(); }