mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -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)) {
|
if (Array.isArray(value)) {
|
||||||
for (var i = 0, l = value.length; i < l; i++)
|
for (var i = 0, l = value.length; i < l; i++)
|
||||||
walkAst(value[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);
|
walkAst(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue