chore(): zone.runOutsideAngular

This commit is contained in:
Adam Bradley
2015-10-15 10:29:20 -05:00
parent f2ad705cdd
commit 8a5778661b
5 changed files with 22 additions and 11 deletions

View File

@@ -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);