mirror of
https://github.com/konvajs/konva.git
synced 2025-12-17 09:54:56 +08:00
toObject fixes
This commit is contained in:
@@ -1231,7 +1231,7 @@
|
||||
|
||||
for (key in attrs) {
|
||||
val = attrs[key];
|
||||
getter = this[key];
|
||||
getter = typeof this[key] === 'function' && this[key];
|
||||
// remove attr value so that we can extract the default value from the getter
|
||||
delete attrs[key];
|
||||
defaultValue = getter ? getter.call(this) : null;
|
||||
|
||||
Reference in New Issue
Block a user