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

Commit 7e233eb

Browse files
PatrickJSpetebacondarwin
authored andcommitted
docs($q): missing finally notifyCallback API
finally allows for notifyCallback and is missing in the Docs https://github.com/angular/angular.js/blob/v1.3.2/src/ng/q.js#L288 Closes #10010
1 parent b7afd11 commit 7e233eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/q.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
*
143143
* - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)`
144144
*
145-
* - `finally(callback)` – allows you to observe either the fulfillment or rejection of a promise,
145+
* - `finally(callback, notifyCallback)` – allows you to observe either the fulfillment or rejection of a promise,
146146
* but to do so without modifying the final value. This is useful to release resources or do some
147147
* clean-up that needs to be done whether the promise was rejected or resolved. See the [full
148148
* specification](https://github.com/kriskowal/q/wiki/API-Reference#promisefinallycallback) for

0 commit comments

Comments
 (0)