diff --git a/js/utils/tap.js b/js/utils/tap.js index 8cf1cc09184..414495e1d0b 100644 --- a/js/utils/tap.js +++ b/js/utils/tap.js @@ -550,8 +550,9 @@ function tapTargetElement(ele) { } ionic.DomUtil.ready(function(){ + var ng = typeof angular !== 'undefined' ? angular : null; //do nothing for e2e tests - if (!angular.scenario) { + if (!ng || (ng && !ng.scenario)) { ionic.tap.register(document); } });