Skip to content

Commit

Permalink
Merge pull request #114 from abucur/master
Browse files Browse the repository at this point in the history
Fix typo for importScript -> importScripts
  • Loading branch information
zloirock committed Sep 30, 2015
2 parents 69651be + d43f083 commit a355d12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/modules/$.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '', '*');
};
Expand Down
2 changes: 1 addition & 1 deletion modules/$.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '', '*');
};
Expand Down

0 comments on commit a355d12

Please sign in to comment.