@@ -56,7 +56,7 @@ function Raven() {
5656 this . _plugins = [ ] ;
5757 this . _startTime = now ( ) ;
5858
59- for ( var method in this . _originalConsole ) {
59+ for ( var method in this . _originalConsole ) { // eslint-disable-line guard-for-in
6060 this . _originalConsoleMethods [ method ] = this . _originalConsole [ method ] ;
6161 }
6262}
@@ -98,7 +98,7 @@ Raven.prototype = {
9898 if ( options ) {
9999 each ( options , function ( key , value ) {
100100 // tags and extra are special and need to be put into context
101- if ( key == 'tags' || key == 'extra' ) {
101+ if ( key === 'tags' || key = == 'extra' ) {
102102 self . _globalContext [ key ] = value ;
103103 } else {
104104 self . _globalOptions [ key ] = value ;
@@ -535,7 +535,9 @@ Raven.prototype = {
535535 // IE9 if quirks
536536 try {
537537 document . fireEvent ( 'on' + evt . eventType . toLowerCase ( ) , evt ) ;
538- } catch ( e ) { }
538+ } catch ( e ) {
539+ // Do nothing
540+ }
539541 }
540542 } ,
541543
@@ -555,7 +557,7 @@ Raven.prototype = {
555557 // Make a copy of the arguments
556558 var args = [ ] . slice . call ( arguments ) ;
557559 var originalCallback = args [ 0 ] ;
558- if ( typeof ( originalCallback ) === 'function' ) {
560+ if ( typeof originalCallback === 'function' ) {
559561 args [ 0 ] = self . wrap ( originalCallback ) ;
560562 }
561563
@@ -591,7 +593,9 @@ Raven.prototype = {
591593 if ( fn && fn . handleEvent ) {
592594 fn . handleEvent = self . wrap ( fn . handleEvent ) ;
593595 }
594- } catch ( err ) { } // can sometimes get 'Permission denied to access property "handle Event'
596+ } catch ( err ) {
597+ // can sometimes get 'Permission denied to access property "handle Event'
598+ }
595599 return orig . call ( this , evt , self . wrap ( fn ) , capture , secure ) ;
596600 } ;
597601 } ) ;
@@ -658,7 +662,7 @@ Raven.prototype = {
658662 return dsn ;
659663 } ,
660664
661- _handleOnErrorStackInfo : function ( stackInfo , options ) {
665+ _handleOnErrorStackInfo : function ( ) {
662666 // if we are intentionally ignoring errors via onerror, bail out
663667 if ( ! this . _ignoreOnError ) {
664668 this . _handleStackInfo . apply ( this , arguments ) ;
@@ -712,9 +716,9 @@ Raven.prototype = {
712716
713717 normalized . in_app = ! ( // determine if an exception came from outside of our app
714718 // first we check the global includePaths list.
715- ( ! ! this . _globalOptions . includePaths . test && ! this . _globalOptions . includePaths . test ( normalized . filename ) ) ||
719+ ! ! this . _globalOptions . includePaths . test && ! this . _globalOptions . includePaths . test ( normalized . filename ) ||
716720 // Now we check for fun, if the function name is Raven or TraceKit
717- / ( R a v e n | T r a c e K i t ) \. / . test ( normalized [ ' function' ] ) ||
721+ / ( R a v e n | T r a c e K i t ) \. / . test ( normalized . function ) ||
718722 // finally, we do a last ditch effort and check for raven.min.js
719723 / r a v e n \. ( m i n \. ) ? j s $ / . test ( normalized . filename )
720724 ) ;
@@ -762,7 +766,7 @@ Raven.prototype = {
762766 } ,
763767
764768 _processException : function ( type , message , fileurl , lineno , frames , options ) {
765- var stacktrace , i , fullMessage ;
769+ var stacktrace , fullMessage ;
766770
767771 if ( ! ! this . _globalOptions . ignoreErrors . test && this . _globalOptions . ignoreErrors . test ( message ) ) return ;
768772
0 commit comments