Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

$q 'finally' not working in IE8

Tags:

angularjs

q

Angular 1.2 replaced always with finally on promises.

So what was once this:

$http.get('/myurl').always(handler);

Now needs to be this:

$http.get('/myurl').finally(handler);

But I am getting the error "expected identifier" in IE8. How can I make this work in IE8?

like image 577
Tim Kindberg Avatar asked Aug 15 '13 13:08

Tim Kindberg


1 Answers

Found it: https://github.com/angular/angular.js/commit/f078762d48d0d5d9796dcdf2cb0241198677582c

$http.get('/myurl')["finally"](handler);

like image 185
Tim Kindberg Avatar answered Oct 15 '22 12:10

Tim Kindberg