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.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 $.blockUI) === 'object') { > > // set up blockUI > > } > > > > also seems to work > > > > if((typeof $.fn.idTabs) === 'object') { > > $('.idTabs').idTabs(); > > } > > > > > > does'nt work > > if((typeof $.fn.jScrollPane) === 'object') { > > $('.scroll-pane').jScrollPane(); > > } > > > > > > > > it seems to not work with JSScrollBar though - so I thought perhaps > > there is a better way > > > > or should I go through the converluted apprpach of setting flags?? > > > > var isBlockUI = 1; // added to the plugin file to check elsewhere in > > other scripts > > > > > > > > >