mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
15 lines
380 B
JavaScript
15 lines
380 B
JavaScript
(function(window, document, ion) {
|
|
|
|
function click(e) {
|
|
if(e.target.dataset.togglePanel) {
|
|
ion.Panel.toggle(e.target.dataset.togglePanel);
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
window.addEventListener('click', click, false);
|
|
window.addEventListener('touchend', click, false);
|
|
|
|
})(this, document, ion = this.ion || {}); |