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

Commit f9e1c3e

Browse files
committed
docs(q): add note about optional arguments
- Add note about optional arguments in the promise.then api
1 parent f467dc3 commit f9e1c3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng/q.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@
146146
* with the value which is resolved in that promise using
147147
* [promise chaining](http://www.html5rocks.com/en/tutorials/es6/promises/#toc-promises-queues)).
148148
* It also notifies via the return value of the `notifyCallback` method. The promise cannot be
149-
* resolved or rejected from the notifyCallback method.
149+
* resolved or rejected from the notifyCallback method. The errorCallback and notifyCallback
150+
* arguments are optional.
150151
*
151152
* - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)`
152153
*

0 commit comments

Comments
 (0)