From 912f7ad62953a807c642aa8f7ec3247f3b4fb579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 18 Nov 2014 15:24:40 -0800 Subject: [PATCH] Allow injection of additional undefined fields through object literal constructors and #set(). --- src/core/Base.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/Base.js b/src/core/Base.js index 8aed4cbd..844dc280 100644 --- a/src/core/Base.js +++ b/src/core/Base.js @@ -68,8 +68,7 @@ Base.inject(/** @lends Base# */{ // inheritance trick in the argument reading code. var orig = props._filtering || props; for (var key in orig) { - if (key in this && orig.hasOwnProperty(key) - && !(exclude && exclude[key])) { + if (orig.hasOwnProperty(key) && !(exclude && exclude[key])) { var value = props[key]; // Due to the _filtered inheritance trick, undefined is used // to mask already consumed named arguments.