mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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.
|
// inheritance trick in the argument reading code.
|
||||||
var orig = props._filtering || props;
|
var orig = props._filtering || props;
|
||||||
for (var key in orig) {
|
for (var key in orig) {
|
||||||
if (key in this && orig.hasOwnProperty(key)
|
if (orig.hasOwnProperty(key) && !(exclude && exclude[key])) {
|
||||||
&& !(exclude && exclude[key])) {
|
|
||||||
var value = props[key];
|
var value = props[key];
|
||||||
// Due to the _filtered inheritance trick, undefined is used
|
// Due to the _filtered inheritance trick, undefined is used
|
||||||
// to mask already consumed named arguments.
|
// to mask already consumed named arguments.
|
||||||
|
|
Loading…
Reference in a new issue