mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Make PaperScript work again with latest Acorn.js
This commit is contained in:
parent
afac35fabf
commit
a98e39374d
1 changed files with 3 additions and 1 deletions
|
@ -142,7 +142,9 @@ 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.isPlainObject(value)) {
|
||||
} else if (value && typeof value === 'object') {
|
||||
// We cannot use Base.isPlainObject() for these since
|
||||
// Acorn.js uses its own internal prototypes now.
|
||||
walkAst(value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue