mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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.
|
||||
if (hasProps && props !== Item.NO_INSERT)
|
||||
// Filter out insert and parent property as these were handled above
|
||||
// and don't check for plain object as that's done through hasProps.
|
||||
this._set(props, { insert: true, parent: true }, true);
|
||||
// Filter out insert, parent and project properties as these were
|
||||
// handled above.
|
||||
this._set(props, { insert: true, project: true, parent: true },
|
||||
// Don't check for plain object as that's done by hasProps.
|
||||
true);
|
||||
return hasProps;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue