Skip to content

Commit ab8407d

Browse files
committed
lodash 3 and pre-console compat
1 parent cdde75b commit ab8407d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backbone.radio.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ _.extend(Radio, {
135135

136136
// Log information about the channel and event
137137
log: function(channelName, eventName) {
138-
var args = _.rest(arguments, 2);
138+
if (typeof console === 'undefined') { return; }
139+
var args = _.drop(arguments, 2);
139140
console.log('[' + channelName + '] "' + eventName + '"', args);
140141
},
141142

0 commit comments

Comments
 (0)