I wrote a quick and dirty logger as a jQuery plugin
(function($){
$.log = function(debug) {
if (console.debug) {
console.debug(debug);
};
};
})(jQuery);
It works fine in Firefox, but in IE7, I'm getting the error
console.debug is null or not an object
How do I perform a function exists in JavaScript that's compatible with IE7?
Thanks