r80674 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80673‎ | r80674 | r80675 >
Date:01:20, 21 January 2011
Author:krinkle
Status:deferred
Tags:
Comment:
re-adding Debug window.log (removed by accident in merge)
Modified paths:
  • /trunk/tools/wp-photocommons/js/search.js (modified) (history)

Diff [purge]

Index: trunk/tools/wp-photocommons/js/search.js
@@ -1,6 +1,11 @@
2 -// Debug
3 -window.log = function( a, b ) {
4 - //console.log( a, b );
 2+// usage: log('inside coolFunc',this,arguments);
 3+// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
 4+window.log = function(){
 5+ log.history = log.history || []; // store logs to an array for reference
 6+ log.history.push(arguments);
 7+ if(this.console){
 8+ console.log( Array.prototype.slice.call(arguments) );
 9+ }
510 };
611
712 if ( !window.PhotoCommons ) {

Status & tagging log