[jQuery] Re: is this a good way to test for the presence of a jquery plugin?

2008-04-23 Thread Sam Sherlock
thx - seems obvious now, and I was merely add complexity - S On 23/04/2008, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > > This should work: > > if ($.fn.jScrollPane) { > $('.scroll-pane').jScrollPane(); > } > > --Karl > _ > Karl Swedberg > www.englishrules.com > www.learningjque

[jQuery] Re: is this a good way to test for the presence of a jquery plugin?

2008-04-23 Thread Karl Swedberg
This should work: if ($.fn.jScrollPane) { $('.scroll-pane').jScrollPane(); } --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 23, 2008, at 5:00 PM, Sam Sherlock wrote: I am using this to test for the presence of blockUI if((typeof $.block