mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Filter out project
key in object literal constructor.
It was causing issues when running test suites in phantomjs.
This commit is contained in:
parent
4044089d0e
commit
cce42bc6f2
1 changed files with 5 additions and 3 deletions
|
@ -117,9 +117,11 @@ var Item = Base.extend(Emitter, /** @lends Item# */{
|
||||||
}
|
}
|
||||||
// Filter out Item.NO_INSERT before _set(), for performance reasons.
|
// Filter out Item.NO_INSERT before _set(), for performance reasons.
|
||||||
if (hasProps && props !== Item.NO_INSERT)
|
if (hasProps && props !== Item.NO_INSERT)
|
||||||
// Filter out insert and parent property as these were handled above
|
// Filter out insert, parent and project properties as these were
|
||||||
// and don't check for plain object as that's done through hasProps.
|
// handled above.
|
||||||
this._set(props, { insert: true, parent: true }, true);
|
this._set(props, { insert: true, project: true, parent: true },
|
||||||
|
// Don't check for plain object as that's done by hasProps.
|
||||||
|
true);
|
||||||
return hasProps;
|
return hasProps;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue