|
|
@ -1158,18 +1158,23 @@ define([
|
|
|
|
Nthen(function (waitFor2) {
|
|
|
|
Nthen(function (waitFor2) {
|
|
|
|
if (Worker) {
|
|
|
|
if (Worker) {
|
|
|
|
var w = waitFor2();
|
|
|
|
var w = waitFor2();
|
|
|
|
worker = new Worker('/common/outer/testworker.js?' + urlArgs);
|
|
|
|
try {
|
|
|
|
worker.onerror = function (errEv) {
|
|
|
|
worker = new Worker('/common/outer/testworker.js?' + urlArgs);
|
|
|
|
errEv.preventDefault();
|
|
|
|
worker.onerror = function (errEv) {
|
|
|
|
errEv.stopPropagation();
|
|
|
|
errEv.preventDefault();
|
|
|
|
|
|
|
|
errEv.stopPropagation();
|
|
|
|
|
|
|
|
noWorker = true;
|
|
|
|
|
|
|
|
w();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
worker.onmessage = function (ev) {
|
|
|
|
|
|
|
|
if (ev.data === "OK") {
|
|
|
|
|
|
|
|
w();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
noWorker = true;
|
|
|
|
noWorker = true;
|
|
|
|
w();
|
|
|
|
w();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
worker.onmessage = function (ev) {
|
|
|
|
|
|
|
|
if (ev.data === "OK") {
|
|
|
|
|
|
|
|
w();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (typeof(SharedWorker) !== "undefined") {
|
|
|
|
if (typeof(SharedWorker) !== "undefined") {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|