We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0017154 commit 39eca1eCopy full SHA for 39eca1e
src/raven.js
@@ -156,14 +156,21 @@ var Raven = {
156
options = undefined;
157
}
158
159
- return function() {
160
- try {
161
- return func.apply(this, arguments);
162
- } catch(e) {
163
- Raven.captureException(e, options);
164
- throw e;
165
- }
166
- };
+ var property,
+ wrappedFunction = function() {
+ try {
+ func.apply(this, arguments);
+ } catch(e) {
+ Raven.captureException(e, options);
+ throw e;
+ }
167
+ };
168
+
169
+ for (property in func) {
170
+ wrappedFunction[property] = func[property];
171
172
173
+ return wrappedFunction;
174
},
175
176
/*
0 commit comments