Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 75abbd5

Browse files
adamdbradleypetebacondarwin
authored andcommitted
fix(templateRequest): avoid throwing 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. Fixes #11089 Closes #11051 Closes #11088
1 parent 01a725a commit 75abbd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/templateRequest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function $TemplateRequestProvider() {
4040
};
4141

4242
return $http.get(tpl, httpOptions)
43-
.finally(function() {
43+
['finally'](function() {
4444
handleRequestFn.totalPendingRequests--;
4545
})
4646
.then(function(response) {

0 commit comments

Comments
 (0)