[jQuery] Re: 1.3 and toggle()

2009-01-31 Thread gmacgregor

On Jan 30, 7:08 pm, John Resig jere...@gmail.com wrote:
 It looks like you're trying to use a jQuery UI effect - maybe that's why?

Thanks John. Forgive my ignorance, but how does jQuery know that
you're calling the toggle() UI effect as opposed to the toggle() core
effect? For example:

// toggle UI
$(p).click(function () {
$(div).toggle(slide, {}, 1000);
});

// toggle core
$(button).click(function () {
$(p).toggle(slow);
});



[jQuery] Re: 1.3 and toggle()

2009-01-30 Thread John Resig

It looks like you're trying to use a jQuery UI effect - maybe that's why?

--John



2009/1/30 gmacgregor gmacgre...@gmail.com:

 Consider this markup:

 div class=holder
 h4Foo/h4
 div class=bar
 Hello!
 /div
 /div

 Since upgrading to 1.3, this no longer works:

 $('div.holder h4').click(function() {
$(this).toggleClass('close');
$(this).next('.bar').toggle(blind, {direction: vertical},
 600);
return false;
 });

 If I simply call $(this).next('.bar').toggle(fast) instead
 everything is fine. Am I completely missing something in the docs with
 regards to toggle()? Any help much appreciated...