Given that you don't need (or want) debug functionality in a
production environment, I would argue that this is better suited to a
plugin and doesn't belong in the core.

--Erik

On 3/12/07, Daemach <[EMAIL PROTECTED]> wrote:
>
> I would like to be able to dump the contents of the current selector to the
> console using $"#myselector").debug() without loading a plugin.  Something
> as simple as the following would work, though if you devs have some ideas on
> how to make it more useful I'm sure it would be welcomed, especially by new
> users:
>
>                  jQuery.fn.debug = function() {
>                  console.log(this);
>                  return this;
>                  }
>
> Long chains that include callbacks with anonymous functions make it
> difficult to use console.log($()).  Can this be added to the jQ codebase so
> it's always available?
> --
> View this message in context: 
> http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9443378
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to