From d43f083d5c69b55931dd381662d2a9c035192ad9 Mon Sep 17 00:00:00 2001 From: Andrei Bucur Date: Wed, 30 Sep 2015 16:57:29 +0300 Subject: [PATCH] Fix typo for importScript -> importScripts --- library/modules/$.task.js | 2 +- modules/$.task.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/modules/$.task.js b/library/modules/$.task.js index 4306433401de..01d3f4c5d71d 100644 --- a/library/modules/$.task.js +++ b/library/modules/$.task.js @@ -50,7 +50,7 @@ if(!setTask || !clearTask){ defer = ctx(port.postMessage, port, 1); // Browsers with postMessage, skip WebWorkers // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' - } else if(global.addEventListener && typeof postMessage == 'function' && !global.importScript){ + } else if(global.addEventListener && typeof postMessage == 'function' && !global.importScripts){ defer = function(id){ global.postMessage(id + '', '*'); }; diff --git a/modules/$.task.js b/modules/$.task.js index 4306433401de..01d3f4c5d71d 100644 --- a/modules/$.task.js +++ b/modules/$.task.js @@ -50,7 +50,7 @@ if(!setTask || !clearTask){ defer = ctx(port.postMessage, port, 1); // Browsers with postMessage, skip WebWorkers // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' - } else if(global.addEventListener && typeof postMessage == 'function' && !global.importScript){ + } else if(global.addEventListener && typeof postMessage == 'function' && !global.importScripts){ defer = function(id){ global.postMessage(id + '', '*'); };