Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
set(...args) {
if (typeof args[1] === 'undefined') {
const [ values ] = args;
// Set multiple values
for (const key in values) {
this.setValue(key, values[key]);
}
} else {
const [ key, value ] = args;
this.setValue(key, value);
}
if (this.hasChanged) {
onFrameRender(this.render);
}
return this;
}