mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-01 16:49:15 -04:00
Change Base.isObject() to also check for instances of plain Base objects, and rename it to Base.isPlainObject().
This commit is contained in:
parent
2abefee336
commit
24b5f870bd
5 changed files with 14 additions and 8 deletions
src/core
|
@ -146,7 +146,7 @@ var PaperScript = this.PaperScript = new function() {
|
|||
if (Array.isArray(value)) {
|
||||
for (var i = 0, l = value.length; i < l; i++)
|
||||
walkAst(value[i]);
|
||||
} else if (Base.isObject(value)) {
|
||||
} else if (Base.isPlainObject(value)) {
|
||||
walkAst(value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue