mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
fix array serialization. fix #576
This commit is contained in:
@@ -1308,8 +1308,9 @@ export abstract class Node {
|
||||
for (key in attrs) {
|
||||
val = attrs[key];
|
||||
// if value is object and object is not plain
|
||||
// like class instance, we should skip it and to not inclide
|
||||
nonPlainObject = Util.isObject(val) && !Util._isPlainObject(val);
|
||||
// like class instance, we should skip it and to not include
|
||||
nonPlainObject =
|
||||
Util.isObject(val) && !Util._isPlainObject(val) && !Util._isArray(val);
|
||||
if (nonPlainObject) {
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user