From 85563d6cd840be46bcf95678800669e1040bc884 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 12 Feb 2015 21:43:10 -0600 Subject: [PATCH] fix(syntax): `.finally` syntax error in Android 2.3 Android 2.3 throws an `Uncaught SyntaxError: Unexpected token finally` pointing at this line. Change `.finally` to bracket notation. --- src/ng/templateRequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng/templateRequest.js b/src/ng/templateRequest.js index 94ea64e0ca14..5760dde0b973 100644 --- a/src/ng/templateRequest.js +++ b/src/ng/templateRequest.js @@ -40,7 +40,7 @@ function $TemplateRequestProvider() { }; return $http.get(tpl, httpOptions) - .finally(function() { + ['finally'](function() { handleRequestFn.totalPendingRequests--; }) .then(function(response) {