Merged pull request #221 from SRabbelier/exports-worker.
Fix workers that require a module returning a value
This commit is contained in:
commit
4edbd4e55a
1 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ var define = function(id, deps, factory) {
|
|||
};
|
||||
var returnExports = factory(require, module.exports, module);
|
||||
if (returnExports)
|
||||
module.exports = exports;
|
||||
module.exports = returnExports;
|
||||
return module;
|
||||
}
|
||||
};
|
||||
|
|
@ -108,4 +108,4 @@ onmessage = function(e) {
|
|||
else if (msg.event && sender) {
|
||||
sender._dispatchEvent(msg.event, msg.data);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue