@@ -302,39 +302,6 @@ extend(Raven.prototype, {
302
302
return domain . active ? domain . active . sentryContext : this . _globalContext ;
303
303
} ,
304
304
305
- /*
306
- * Set/clear a user to be sent along with the payload.
307
- *
308
- * @param {object } user An object representing user data [optional]
309
- * @return {Raven }
310
- */
311
- setUserContext : function setUserContext ( ) {
312
- utils . consoleAlert ( 'setUserContext has been deprecated and will be removed in v2.0; use setContext instead' ) ;
313
- return this ;
314
- } ,
315
-
316
- /*
317
- * Merge extra attributes to be sent along with the payload.
318
- *
319
- * @param {object } extra An object representing extra data [optional]
320
- * @return {Raven }
321
- */
322
- setExtraContext : function setExtraContext ( ) {
323
- utils . consoleAlert ( 'setExtraContext has been deprecated and will be removed in v2.0; use setContext instead' ) ;
324
- return this ;
325
- } ,
326
-
327
- /*
328
- * Merge tags to be sent along with the payload.
329
- *
330
- * @param {object } tags An object representing tags [optional]
331
- * @return {Raven }
332
- */
333
- setTagsContext : function setTagsContext ( ) {
334
- utils . consoleAlert ( 'setTagsContext has been deprecated and will be removed in v2.0; use setContext instead' ) ;
335
- return this ;
336
- } ,
337
-
338
305
setCallbackHelper : function ( propertyName , callback ) {
339
306
var original = this [ propertyName ] ;
340
307
if ( typeof callback === 'function' ) {
@@ -402,13 +369,25 @@ extend(Raven.prototype, {
402
369
} ,
403
370
captureError : function captureError ( ) {
404
371
utils . consoleAlert ( 'captureError has been deprecated and will be removed in v2.0' ) ;
405
- this . captureException . apply ( this , arguments ) ;
372
+ return this . captureException . apply ( this , arguments ) ;
406
373
} ,
407
374
patchGlobal : function ( cb ) {
408
375
utils . consoleAlert ( 'patchGlobal has been deprecated and will be removed in v2.0' ) ;
409
376
registerExceptionHandler ( this , cb ) ;
410
377
return this ;
411
- }
378
+ } ,
379
+ setUserContext : function setUserContext ( ) {
380
+ utils . consoleAlert ( 'setUserContext has been deprecated and will be removed in v2.0; use setContext instead' ) ;
381
+ return this ;
382
+ } ,
383
+ setExtraContext : function setExtraContext ( ) {
384
+ utils . consoleAlert ( 'setExtraContext has been deprecated and will be removed in v2.0; use setContext instead' ) ;
385
+ return this ;
386
+ } ,
387
+ setTagsContext : function setTagsContext ( ) {
388
+ utils . consoleAlert ( 'setTagsContext has been deprecated and will be removed in v2.0; use setContext instead' ) ;
389
+ return this ;
390
+ } ,
412
391
} ) ;
413
392
Raven . prototype . get_ident = Raven . prototype . getIdent ;
414
393
0 commit comments