mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
stopped most click events
This commit is contained in:
10
dist/ionic.js
vendored
10
dist/ionic.js
vendored
@ -164,11 +164,11 @@ if ( document.readyState === "complete" ) {
|
|||||||
|| e.metaKey
|
|| e.metaKey
|
||||||
|| e.ctrlKey
|
|| e.ctrlKey
|
||||||
//|| isScrolling
|
//|| isScrolling
|
||||||
|| location.protocol !== target.protocol
|
// || location.protocol !== target.protocol
|
||||||
|| location.host !== target.host
|
// || location.host !== target.host
|
||||||
// Not sure abotu this one
|
// // Not sure abotu this one
|
||||||
//|| !target.hash && /#/.test(target.href)
|
// //|| !target.hash && /#/.test(target.href)
|
||||||
|| target.hash && target.href.replace(target.hash, '') === location.href.replace(location.hash, '')
|
// || target.hash && target.href.replace(target.hash, '') === location.href.replace(location.hash, '')
|
||||||
//|| target.getAttribute('data-ignore') == 'push'
|
//|| target.getAttribute('data-ignore') == 'push'
|
||||||
) {
|
) {
|
||||||
// Allow it
|
// Allow it
|
||||||
|
|||||||
10
js/events.js
10
js/events.js
@ -75,11 +75,11 @@
|
|||||||
|| e.metaKey
|
|| e.metaKey
|
||||||
|| e.ctrlKey
|
|| e.ctrlKey
|
||||||
//|| isScrolling
|
//|| isScrolling
|
||||||
|| location.protocol !== target.protocol
|
// || location.protocol !== target.protocol
|
||||||
|| location.host !== target.host
|
// || location.host !== target.host
|
||||||
// Not sure abotu this one
|
// // Not sure abotu this one
|
||||||
//|| !target.hash && /#/.test(target.href)
|
// //|| !target.hash && /#/.test(target.href)
|
||||||
|| target.hash && target.href.replace(target.hash, '') === location.href.replace(location.hash, '')
|
// || target.hash && target.href.replace(target.hash, '') === location.href.replace(location.hash, '')
|
||||||
//|| target.getAttribute('data-ignore') == 'push'
|
//|| target.getAttribute('data-ignore') == 'push'
|
||||||
) {
|
) {
|
||||||
// Allow it
|
// Allow it
|
||||||
|
|||||||
Reference in New Issue
Block a user