@@ -302,39 +302,6 @@ extend(Raven.prototype, {
302302 return domain . active ? domain . active . sentryContext : this . _globalContext ;
303303 } ,
304304
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-
338305 setCallbackHelper : function ( propertyName , callback ) {
339306 var original = this [ propertyName ] ;
340307 if ( typeof callback === 'function' ) {
@@ -402,13 +369,25 @@ extend(Raven.prototype, {
402369 } ,
403370 captureError : function captureError ( ) {
404371 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 ) ;
406373 } ,
407374 patchGlobal : function ( cb ) {
408375 utils . consoleAlert ( 'patchGlobal has been deprecated and will be removed in v2.0' ) ;
409376 registerExceptionHandler ( this , cb ) ;
410377 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+ } ,
412391} ) ;
413392Raven . prototype . get_ident = Raven . prototype . getIdent ;
414393
0 commit comments