From 3618109187a07c03d5d192579366f14a3f2c239c Mon Sep 17 00:00:00 2001 From: Andrew Joslin Date: Wed, 21 May 2014 07:38:08 -0600 Subject: [PATCH] fix(requirejs): fix bug with loading order of angular & taps --- js/utils/tap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } });