Fix defer for webkit in a webworker.

This commit is contained in:
Guillermo Rauch
2011-10-18 16:28:19 -07:00
parent f8deca10e6
commit 6ffd18abe9

View File

@@ -202,7 +202,7 @@
*/
util.defer = function (fn) {
if (!util.ua.webkit) {
if (!util.ua.webkit || 'undefined' != typeof importScripts) {
return fn();
}