popup remove firing popupafterclose #5123

Closed
poonkave opened this Issue Oct 3, 2012 · 0 comments

Projects

None yet

2 participants

@poonkave
Contributor
poonkave commented Oct 3, 2012

trying to use new popup to show different types of contents.
Got a function which accepts $html and show it in runtime added popup.
If any previous data-role='popup' exist then remove it from DOM.

http://jsfiddle.net/N7NLk/

Issue: calling remove() firing popupafterclose.

To replicate: click button second time which fires popupafterclose twice. Once on remove() of previous popup and on actual popupafterclose.(see console.log)

@gabrielschulhof gabrielschulhof added a commit that closed this issue Oct 4, 2012
@gabrielschulhof gabrielschulhof [popup] When destroying a popup, run close() before un-enhancing if i…
…t is the currently active popup -- Fixes #5123
0586202
@gabrielschulhof gabrielschulhof added a commit that referenced this issue Oct 4, 2012
@gabrielschulhof gabrielschulhof [popup] When destroying a popup, run close() before un-enhancing if i…
…t is the currently active popup -- Fixes #5123
616ae09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment