Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Panel: Bail upon opening animationComplete() if the panel has closed #7264

Closed
wants to merge 2 commits into from

Conversation

gabrielschulhof
Copy link

Panel: Hook up animationComplete() to the wrapper, not the element
Panel: Bail upon opening animationComplete() if the panel has closed

Fixes gh-7236

Gabriel Schulhof added 2 commits April 24, 2014 09:13
Hook up animationComplete() to the wrapper, not the element, because that's
the element to which the animation class is added

Closes gh-7264
Fixes gh-7236
Originally, .panel( "close" ) was called synchronously with .panel( "open" ),
while asynchronous assertions were being made in handlers for both panelopen
and panelclose. This doesn't work anymoure, because panelopen is not triggered
if .panel( "close" ) is called before panelopen is fired.
@arschmitz
Copy link
Contributor

👍

@gabrielschulhof gabrielschulhof deleted the 7236-keep-_openedPage-up-to-date branch April 24, 2014 15:57
gabrielschulhof pushed a commit that referenced this pull request Apr 24, 2014
Hook up animationComplete() to the wrapper, if present, and only otherwise to
the element, because the animation class is only added to the element if there
is no wrapper.

The tests now need to wait for the panel to actually open in order to hit all
the assertions, because some assertions are made only upon panelopen.

(cherry picked from commit 301f124)

Closes gh-7264
Fixes gh-7236
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

External Panel loose correct _openedPage randomly after multiple page change
3 participants