@@ -30,7 +30,7 @@ loggers.log = function() {
30
30
for ( i = 0 ; i < arguments . length ; i ++ ) {
31
31
messages . push ( arguments [ i ] ) ;
32
32
}
33
- apply ( console . trace || console . log , messages ) ;
33
+ console . trace . apply ( console , messages ) ;
34
34
}
35
35
36
36
if ( dfltConfig . notifyOnLogging > 1 ) {
@@ -50,7 +50,7 @@ loggers.warn = function() {
50
50
for ( i = 0 ; i < arguments . length ; i ++ ) {
51
51
messages . push ( arguments [ i ] ) ;
52
52
}
53
- apply ( console . trace || console . log , messages ) ;
53
+ console . trace . apply ( console , messages ) ;
54
54
}
55
55
56
56
if ( dfltConfig . notifyOnLogging > 0 ) {
@@ -70,7 +70,7 @@ loggers.error = function() {
70
70
for ( i = 0 ; i < arguments . length ; i ++ ) {
71
71
messages . push ( arguments [ i ] ) ;
72
72
}
73
- apply ( console . error , messages ) ;
73
+ console . error . apply ( console , messages ) ;
74
74
}
75
75
76
76
if ( dfltConfig . notifyOnLogging > 0 ) {
@@ -81,11 +81,3 @@ loggers.error = function() {
81
81
notifier ( lines . join ( '<br>' ) , 'stick' ) ;
82
82
}
83
83
} ;
84
-
85
- function apply ( f , args ) {
86
- if ( f && f . apply ) {
87
- // `this` should always be console, since here we're always
88
- // applying a method of the console object.
89
- f . apply ( console , args ) ;
90
- }
91
- }
0 commit comments