Skip to content

Commit

Permalink
window.log enhancement. thnx trevnorris. fixes h5bp#313
Browse files Browse the repository at this point in the history
  • Loading branch information
Divya Manian committed Mar 1, 2011
1 parent 2a2f1d6 commit 7a5705b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/plugins.js
Expand Up @@ -4,6 +4,7 @@
window.log = function(){
log.history = log.history || []; // store logs to an array for reference
log.history.push(arguments);
arguments.callee = arguments.callee.caller;
if(this.console) console.log( Array.prototype.slice.call(arguments) );
};

Expand Down

0 comments on commit 7a5705b

Please sign in to comment.