From d13061bd7439a9f09f96ad01d6381a3b6b4cf98e Mon Sep 17 00:00:00 2001 From: Barry Simpson Date: Thu, 17 Jul 2014 12:08:49 -0400 Subject: [PATCH 1/2] fix #171 - prevent console errors when using an AMD loader where angular is not global --- src/scripts/intro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/intro.js b/src/scripts/intro.js index 0b7ab04..a3fbbd7 100644 --- a/src/scripts/intro.js +++ b/src/scripts/intro.js @@ -6,4 +6,4 @@ } else { return factory(angular); } -}(angular || null, function(angular) { \ No newline at end of file +}(typeof angular === 'undefined' ? null : angular || null, function(angular) { \ No newline at end of file From 16b8a224492e7fdda83537e0b9451acee32a1cc3 Mon Sep 17 00:00:00 2001 From: Barry Simpson Date: Thu, 17 Jul 2014 12:20:37 -0400 Subject: [PATCH 2/2] forgot to remove "|| null" --- src/scripts/intro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/intro.js b/src/scripts/intro.js index a3fbbd7..2e96054 100644 --- a/src/scripts/intro.js +++ b/src/scripts/intro.js @@ -6,4 +6,4 @@ } else { return factory(angular); } -}(typeof angular === 'undefined' ? null : angular || null, function(angular) { \ No newline at end of file +}(typeof angular === 'undefined' ? null : angular, function(angular) { \ No newline at end of file