Skip to content

Commit

Permalink
IE9 compatibility (adamschwartz#29 thanks @dulaccc)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamschwartz committed Mar 31, 2015
1 parent 227128e commit 37b9d94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion log.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ log = ->
_log.apply window, args

_log = ->
console.log.apply console, makeArray(arguments)
Function.prototype.apply.call console.log, console, makeArray(arguments)

makeArray = (arrayLikeThing) ->
Array::slice.call arrayLikeThing
Expand Down
2 changes: 1 addition & 1 deletion log.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
};

_log = function() {
return console.log.apply(console, makeArray(arguments));
return Function.prototype.apply.call(console.log, console, makeArray(arguments));
};

makeArray = function(arrayLikeThing) {
Expand Down
2 changes: 1 addition & 1 deletion log.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 37b9d94

Please sign in to comment.