mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
panel handlers
This commit is contained in:
@ -3,12 +3,6 @@
|
||||
function click(e) {
|
||||
if(e.target.dataset.togglePanel) {
|
||||
ion.Panel.toggle(e.target.dataset.togglePanel);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function touchEnd(e) {
|
||||
if(click(e)) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
return false;
|
||||
@ -16,6 +10,6 @@
|
||||
}
|
||||
|
||||
window.addEventListener('click', click, false);
|
||||
window.addEventListener('touchend', touchEnd, false);
|
||||
window.addEventListener('touchend', click, false);
|
||||
|
||||
})(this, document, ion = this.ion || {});
|
||||
Reference in New Issue
Block a user