I'm not sure what an ant build is, but adding this to the bottom of jquery.js
on my dev box works.

jQuery.fn.debug = function() {console.log(this);  return this;}


Jörn Zaefferer wrote:
> 
> Daemach schrieb:
>> I already have a plugin - it contains the code I put in my first email. 
>> I
>> just don't want to have to add that line or remember to remove it. 
>> Adding
>> the function directly to jquery will not affect the file size
>> significantly
>> and it will always be available.
>>
>> If I ever decide to switch to safari or opera (not bloody likely) I'll
>> add a
>> function that tests for the availability of a console.  Until then this
>> works for me.
>>   
> You could modify jQuery's ant build and add that plugin for development 
> builds of jQuery.
> 
> -- 
> Jörn Zaefferer
> 
> http://bassistance.de
> 
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9445463
Sent from the JQuery mailing list archive at Nabble.com.


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

Reply via email to