We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7e4c3f commit 0a93306Copy full SHA for 0a93306
1 file changed
src/worker.js
@@ -327,8 +327,8 @@ Worker.prototype.set = function set(opt) {
327
328
Worker.prototype.get = function get(key, cbk) {
329
return this.then(function() {
330
- // Fetch the requested property, either as a root prop or in opt.
331
- var val = (key in Worker.template) ? this[key] : this.opt[key];
+ // Fetch the requested property, either as a predefined prop or in opt.
+ var val = (key in Worker.template.prop) ? this.prop[key] : this.opt[key];
332
return cbk ? cbk(val) : val;
333
});
334
};
0 commit comments