Skip to content

Commit 73f58c2

Browse files
committed
Make new constructor a little less annoying.
1 parent 07b8c75 commit 73f58c2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: dist/stackframe.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
if (obj instanceof Object) {
3636
var props = booleanProps.concat(numericProps.concat(stringProps.concat(arrayProps)));
3737
for (var i = 0; i < props.length; i++) {
38-
if (obj.hasOwnProperty(props[i])) {
38+
if (obj.hasOwnProperty(props[i]) && obj[props[i]] !== undefined) {
3939
this['set' + _capitalize(props[i])](obj[props[i]]);
4040
}
4141
}

Diff for: dist/stackframe.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/stackframe.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: stackframe.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
if (obj instanceof Object) {
3636
var props = booleanProps.concat(numericProps.concat(stringProps.concat(arrayProps)));
3737
for (var i = 0; i < props.length; i++) {
38-
if (obj.hasOwnProperty(props[i])) {
38+
if (obj.hasOwnProperty(props[i]) && obj[props[i]] !== undefined) {
3939
this['set' + _capitalize(props[i])](obj[props[i]]);
4040
}
4141
}

0 commit comments

Comments
 (0)