Ⓙⓐⓚⓔ wrote: > Mike, I don't like breaking the chains... I just insert a debug in the > middle of the chain... > > I use this for my debug: > jQuery.fn.debug = function(message) { > return this.log('debug:' + (message || '') > +"[").each(function(){jQuery.log(this);}).log("]"); > } > jQuery.fn.log = jQuery.log = function(message) { > if (!message) message = 'UNDEFINED' > if (typeof message == "object") message = jsO(message) > if(window.console && window.console.log) //safari > window.console.log(message) > else if(window.console && window.console.debug) //firebug > window.console.debug(message) > else > jQuery("body").prepend(message+ "<br/>") > return this > }
One question though: What is jsO() ? -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/