fix(core): Fixed set handler for proxied options/measurements object
- Fixes https://github.com/freesewing/freesewing.org/issues/895 - Fixes https://github.com/freesewing/freesewing.org/issues/894 - Fixes https://github.com/freesewing/freesewing.org/issues/892 - Fixes https://github.com/freesewing/freesewing.org/issues/891 - Fixes https://github.com/freesewing/freesewing.org/issues/888 - Fixes https://github.com/freesewing/freesewing.org/issues/887 - Fixes https://github.com/freesewing/freesewing.org/issues/885 - Fixes https://github.com/freesewing/freesewing.org/issues/883 - Fixes https://github.com/freesewing/freesewing.org/issues/875 - Fixes https://github.com/freesewing/freesewing.org/issues/873 - Fixes https://github.com/freesewing/freesewing.org/issues/870 - Fixes https://github.com/freesewing/freesewing.org/issues/869
This commit is contained in:
parent
2699bb9496
commit
a57afeaf02
1 changed files with 2 additions and 2 deletions
|
@ -302,7 +302,7 @@ Part.prototype.shorthand = function () {
|
|||
return Reflect.get(...arguments)
|
||||
},
|
||||
set: (measurements, name, value) => {
|
||||
return (self.measurements[name] = value) || true
|
||||
return (self.context.settings.measurements[name] = value) || true
|
||||
}
|
||||
}
|
||||
shorthand.measurements = new Proxy(this.context.settings.measurements || {}, measurementsProxy)
|
||||
|
@ -314,7 +314,7 @@ Part.prototype.shorthand = function () {
|
|||
return Reflect.get(...arguments)
|
||||
},
|
||||
set: (options, name, value) => {
|
||||
return (self.options[name] = value) || true
|
||||
return (self.context.settings.options[name] = value) || true
|
||||
}
|
||||
}
|
||||
shorthand.options = new Proxy(this.context.settings.options || {}, optionsProxy)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue