Change Base.isObject() to also check for instances of plain Base objects, and rename it to Base.isPlainObject().

This commit is contained in:
Jürg Lehni 2012-12-30 17:30:13 +01:00
parent 2abefee336
commit 24b5f870bd
5 changed files with 14 additions and 8 deletions

View file

@ -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);
}
}