Sha256: 0596058bad56ee02af65a320e6eaf7f55d5a08d84ea25d3362a621220bbe061e
Contents?: true
Size: 941 Bytes
Versions: 54
Compression:
Stored size: 941 Bytes
Contents
/** Console X * http://github.com/deadlyicon/consolex.js * * By Jared Grippe <jared@jaredgrippe.com> * * Copyright (c) 2009 Jared Grippe * Licensed under the MIT license. * * consolex avoids ever having to see javascript bugs in browsers that do not implement the entire * firebug console suit * */ (function(window) { window.console || (window.console = {}); var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"]; function emptyFunction(){} for (var i = 0; i < names.length; ++i){ window.console[names[i]] || (window.console[names[i]] = emptyFunction); if (typeof window.console[names[i]] !== 'function') window.console[names[i]] = (function(method) { return function(){ return Function.prototype.apply.apply(method, [console,arguments]); }; })(window.console[names[i]]); } })(this);
Version data entries
54 entries across 51 versions & 10 rubygems