Skip to content

Commit e30d4e6

Browse files
committed
Replace hasOwnProperty checks with hasKey
1 parent bbfdd7a commit e30d4e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/raven.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ var Raven = {
186186

187187
// copy over properties of the old function
188188
for (var property in func) {
189-
if (func.hasOwnProperty(property)) {
189+
if (hasKey(func, property)) {
190190
wrapped[property] = func[property];
191191
}
192192
}
@@ -304,7 +304,7 @@ function triggerEvent(eventType, options) {
304304
event.eventType = eventType;
305305
}
306306

307-
for (key in options) if (options.hasOwnProperty(key)) {
307+
for (key in options) if (hasKey(options, key)) {
308308
event[key] = options[key];
309309
}
310310

@@ -381,7 +381,7 @@ function each(obj, callback) {
381381

382382
if (isUndefined(obj.length)) {
383383
for (i in obj) {
384-
if (obj.hasOwnProperty(i)) {
384+
if (hasKey(obj, i)) {
385385
callback.call(null, i, obj[i]);
386386
}
387387
}

0 commit comments

Comments
 (0)