Skip to content

Commit b778ae0

Browse files
committed
Merge pull request #402 from jlfwong/patch-1
Make Raven.wrap respect prototype chain
2 parents b45aec4 + 14dba67 commit b778ae0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/raven.js

+1
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ var Raven = {
218218
wrapped[property] = func[property];
219219
}
220220
}
221+
wrapped.prototype = func.prototype;
221222

222223
// Signal that this function has been wrapped already
223224
// for both debugging and to prevent it to being wrapped twice

0 commit comments

Comments
 (0)