added check in worker if sender actually exists
This commit is contained in:
parent
0cacc2bfdf
commit
ba2f10346b
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ onmessage = function(e) {
|
|||
var clazz = require(msg.module)[msg.classname];
|
||||
main = new clazz(sender);
|
||||
}
|
||||
else if (msg.event) {
|
||||
else if (msg.event && sender) {
|
||||
sender._dispatchEvent(msg.event, msg.data);
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue