var worker = new Worker('mi.js'); this.p = 1; worker.postMessage({ test:1}); worker.onmessage = function (e) { console.log("RETURNED : " + e.data); //i cant access p on current object. this.p += 2; console.log(this.p.toString()); worker.terminate(); };
this
function(e, this)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)