Sha256: 1ad68e02f4a6c89f82df7caf2283ad5184afd8c2438864d28ac20fc8ad5ccbe4
Contents?: true
Size: 645 Bytes
Versions: 13
Compression:
Stored size: 645 Bytes
Contents
// remap jQuery to $ (function($){ })(window.jQuery); // usage: log('inside coolFunc',this,arguments); // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ window.log = function(){ log.history = log.history || []; // store logs to an array for reference log.history.push(arguments); if(this.console){ console.log( Array.prototype.slice.call(arguments) ); } }; // catch all document.write() calls (function(doc){ var write = doc.write; doc.write = function(q){ log('document.write(): ',arguments); if (/docwriteregexwhitelist/.test(q)) write.apply(doc,arguments); }; })(document);
Version data entries
13 entries across 13 versions & 2 rubygems