Skip to content

Commit e2c7e73

Browse files
committed
check if property is specified property of the function before copying
1 parent 39eca1e commit e2c7e73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/raven.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ var Raven = {
167167
};
168168

169169
for (property in func) {
170-
wrappedFunction[property] = func[property];
170+
if (func.hasOwnProperty(property)) {
171+
wrappedFunction[property] = func[property];
172+
}
171173
}
172174

173175
return wrappedFunction;

0 commit comments

Comments
 (0)