Return to Snippet

Revision: 23012
at January 27, 2010 18:16 by wbednarski


Initial Code
// prevent errors on non-firebug browsers

(function() {
	var f = function() {};
	var c = {
		info: f,
		log: f,
		assert: f,
		warn: f,
		error: f,
		dir: f,
		group: f,
		groupEnd: f
	};

	if(!window.console)
		window.console = c;
})();

Initial URL

                                

Initial Description
prevent errors on non-firebug browsers

Initial Title
Firebug console log proxy

Initial Tags
javascript

Initial Language
JavaScript