Skip to content

Commit 0a93306

Browse files
committed
Adjust getter for nested props
1 parent c7e4c3f commit 0a93306

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ Worker.prototype.set = function set(opt) {
327327

328328
Worker.prototype.get = function get(key, cbk) {
329329
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];
330+
// Fetch the requested property, either as a predefined prop or in opt.
331+
var val = (key in Worker.template.prop) ? this.prop[key] : this.opt[key];
332332
return cbk ? cbk(val) : val;
333333
});
334334
};

0 commit comments

Comments
 (0)