From cce42bc6f2370f4d7d05b43536310d87bd7bd3af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 26 Jul 2015 14:01:00 +0200 Subject: [PATCH] Filter out `project` key in object literal constructor. It was causing issues when running test suites in phantomjs. --- src/item/Item.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index 67c84193..904572b5 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -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; },