mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): zone.runOutsideAngular
This commit is contained in:
@@ -165,6 +165,7 @@ function ifUndefined(val1, val2) {
|
||||
*/
|
||||
function addEventListeners(target, types, handler) {
|
||||
each(splitStr(types), function(type) {
|
||||
console.debug('hammer addEventListener', type, target.tagName);
|
||||
target.addEventListener(type, handler, false);
|
||||
});
|
||||
}
|
||||
@@ -177,6 +178,7 @@ function addEventListeners(target, types, handler) {
|
||||
*/
|
||||
function removeEventListeners(target, types, handler) {
|
||||
each(splitStr(types), function(type) {
|
||||
console.debug('hammer removeEventListener', type, target.tagName);
|
||||
target.removeEventListener(type, handler, false);
|
||||
});
|
||||
}
|
||||
@@ -392,6 +394,7 @@ Input.prototype = {
|
||||
* bind the events
|
||||
*/
|
||||
init: function() {
|
||||
console.debug('hammer Input init')
|
||||
this.evEl && addEventListeners(this.element, this.evEl, this.domHandler);
|
||||
this.evTarget && addEventListeners(this.target, this.evTarget, this.domHandler);
|
||||
this.evWin && addEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);
|
||||
|
||||
Reference in New Issue
Block a user