Sha256: c7fa60b75ad85a483aad60032ab066360fce1022043f7e88f6f2370072e72e3b
Contents?: true
Size: 685 Bytes
Versions: 17
Compression:
Stored size: 685 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
17 entries across 17 versions & 1 rubygems