#420 ✓resolved
lAndRaxeE

Element.toggle & Fx.Slide bug

Reported by lAndRaxeE | December 29th, 2010 @ 09:33 AM | in 2.2.0 Release

When i use Element.toggle("slide") to toggle a element to visible or hidden, i found that when the element is visible, and execute toggle("slide") twice in a short time, u will not see that element hidden and shown then, but hidden twice.

in case i can't be understood clearly, i post my test case in attachment, please check it.

and i think if add these codes can resolve this bug:

Fx.Twin.include({
start: function() {

if (this.how == "out" && this.hidden()) {
  return this.cancel();
}

return this.$super();

} });

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RightJS Core Tickets

Shared Ticket Bins

People watching this ticket

Attachments

Pages