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

Panel panelclose event does not work (jquery mobile 1.4) #7058

Closed
dgruzda opened this issue Feb 3, 2014 · 1 comment
Closed

Panel panelclose event does not work (jquery mobile 1.4) #7058

dgruzda opened this issue Feb 3, 2014 · 1 comment

Comments

@dgruzda
Copy link

dgruzda commented Feb 3, 2014

If I attach multiple event handlers simultaneously using a plain object, panelclose event does not work:
$(document).off("panelopen panelclose", '[name="panel_2"]').on({
panelopen: function() {
alert('Panel open');
},
panelclose: function() {
alert('Panel close');
}
}, '[name="panel_2"]');

@jaspermdegroot
Copy link
Contributor

@dgruzda

Thanks for reporting the issue.
The problem seems to be this line: https://github.com/jquery/jquery-mobile/blob/master/js/widgets/panel.js#L291
Test page: http://jsbin.com/AKOmUxa/107/edit
Using a plain object is not relevant so I am going to remove that from the title.

Ps. Please, always include a test page when reporting issues. See our contributing guidelines. Thanks!

cgack added a commit to cgack/jquery-mobile that referenced this issue Mar 19, 2014
panelclose is not bound to document after _openPanel

Fixes jquery-archivegh-7058
@gabrielschulhof gabrielschulhof added this to the 1.4.3 milestone Mar 19, 2014
cgack added a commit to cgack/jquery-mobile that referenced this issue Apr 24, 2014
cgack added a commit to cgack/jquery-mobile that referenced this issue Apr 24, 2014
altered _on and added another test

Fixes jquery-archivegh-7058
cgack added a commit to cgack/jquery-mobile that referenced this issue May 29, 2014
cgack added a commit to cgack/jquery-mobile that referenced this issue Jun 13, 2014
cgack added a commit to cgack/jquery-mobile that referenced this issue Jun 13, 2014
panelclose is not bound to document after _openPanel

Fixes jquery-archivegh-7058

Panel: panelclose event does not work

altered to use _on and _off

Fixes jquery-archivegh-7058

Panel: panelclose event does not work

altered _on and added another test

Fixes jquery-archivegh-7058

Panel: panelclose event does not work

fix use of _on

Fixes jquery-archivegh-7058

Panel: panelclose event does not work

Fixes jquery-archivegh-7058
cgack added a commit to cgack/jquery-mobile that referenced this issue Jun 14, 2014
cgack added a commit to cgack/jquery-mobile that referenced this issue Jun 14, 2014
arschmitz pushed a commit that referenced this issue Jun 16, 2014
agcolom pushed a commit to agcolom/jquery-mobile that referenced this issue Nov 26, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants