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 | + } |
5 | 10 | }; |
6 | 11 | |
7 | 12 | if ( !window.PhotoCommons ) { |