do not overload dispatch for uglify
This commit is contained in:
parent
830cf2d6ac
commit
56e709ddd5
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ self.alert = function(o) {
|
||||||
|
|
||||||
// start concurrent workers (minions)
|
// start concurrent workers (minions)
|
||||||
if (concurrent) {
|
if (concurrent) {
|
||||||
function dispatch(msg) {
|
function minhandler(msg) {
|
||||||
let data = msg.data;
|
let data = msg.data;
|
||||||
let seq = data.seq;
|
let seq = data.seq;
|
||||||
let fn = minifns[seq];
|
let fn = minifns[seq];
|
||||||
|
|
@ -41,7 +41,7 @@ if (concurrent) {
|
||||||
|
|
||||||
for (let i=0; i < concurrent; i++) {
|
for (let i=0; i < concurrent; i++) {
|
||||||
let minion = new Worker(`/code/minion.js?${self.kiri.version}`);
|
let minion = new Worker(`/code/minion.js?${self.kiri.version}`);
|
||||||
minion.onmessage = dispatch;
|
minion.onmessage = minhandler;
|
||||||
minions.push(minion);
|
minions.push(minion);
|
||||||
}
|
}
|
||||||
console.log(`kiri | init mini | ${KIRI.version || "rogue"} | ${concurrent}`);
|
console.log(`kiri | init mini | ${KIRI.version || "rogue"} | ${concurrent}`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue