Skip to content

Commit 665e6e5

Browse files
authored
Merge pull request #1244 from btecu/v1
Do not rely on options Object.prototype
2 parents 78ad209 + 693fac1 commit 665e6e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gridstack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168

169169
sources.forEach(function(source) {
170170
for (var prop in source) {
171-
if (source.hasOwnProperty(prop) && (!target.hasOwnProperty(prop) || target[prop] === undefined)) {
171+
if (Object.prototype.hasOwnProperty.call(source, prop) && (!Object.prototype.hasOwnProperty.call(target, prop) || target[prop] === undefined)) {
172172
target[prop] = source[prop];
173173
}
174174
}

0 commit comments

Comments
 (0)