mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Allow injection of additional undefined fields through object literal constructors and #set().
This commit is contained in:
parent
d5471c480f
commit
912f7ad629
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue