Skip to content

Commit

Permalink
Updated console.log fix for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
ten1seven committed Apr 18, 2012
1 parent a828579 commit 59efead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
Author: Jeremy Fields, Viget Labs
*/

// usage: log('inside coolFunc', this, arguments);
(function(){var b,d,c=this,a=c.console;c.log=b=function(){d.push(arguments);a&&a.log[a.firebug?"apply":"call"](a,Array.prototype.slice.call(arguments))};c.logargs=function(e){b(e,arguments.callee.caller.arguments)};b.history=d=[]})();
// allows use of console.log
window.console||(console={log:function(){}});

0 comments on commit 59efead

Please sign in to comment.