diff options
| author | Brian Ford | 2013-08-09 09:45:35 -0700 | 
|---|---|---|
| committer | Igor Minar | 2013-08-09 14:08:57 -0700 | 
| commit | f078762d48d0d5d9796dcdf2cb0241198677582c (patch) | |
| tree | 6c3fd2a011787fe701f83e9b55b7bd8ef069bc83 /docs | |
| parent | 3ee744cc63a24b127d6a5f632934bb6ed2de275a (diff) | |
| download | angular.js-f078762d48d0d5d9796dcdf2cb0241198677582c.tar.bz2 | |
chore($q): rename `promise.always` to `promise.finally`
BREAKING CHANGE: the `always` method has been renamed to `finally`.
The reason for this change is to align `$q` with the Q promises library,
despite the fact that this makes it a bit more difficult to
use with non-ES5 browsers, like IE8.
`finally` also goes well together with `catch` api that was added to
$q recently and is part of the DOM promises standard.
To migrate the code follow the example below:
Before:
$http.get('/foo').always(doSomething);
After:
$http.get('/foo').finally(doSomething);
or for IE8 compatible code:
$http.get('/foo')['finally'](doSomething);
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
