aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/q.js
AgeCommit message (Collapse)Author
2014-03-19docs($q): add mention of Antroid 2.x browserthorn0
The Android 2.x browser is not ES5-compatible in that it does not allow use of reserved words as property names. This docs fix adds Android to the note to the `$q` docs which already make it known that string property notation should be used when using the `finally` method on `$q`.
2014-02-26docs(*): fix jsdoc type expressionsPeter Bacon Darwin
These errors in the docs were preventing some parts of the docs from being parsed.
2014-02-18style: remove ws and enfore no-trailing-ws jscs ruleIgor Minar
2014-02-18docs($q): fixup dgeni ngdoc annotations for $q methodsCaitlin Potter
Just a tiny fixup, that's all. Closes #6317
2014-02-16docs(all): convert <pre>/</pre> snippets to GFM snippetsCaitlin Potter
2014-02-16docs(bike-shed-migration): convert doctype and namesPeter Bacon Darwin
2014-02-04docs($q): fixed grammatical errorJohn Kurlak
"Promises" should be of the possessive form. Closes #6082
2014-01-31fix($q): make $q.reject support `finally` and `catch`Lucas Galfasó
Add support for the functions `finally` and `catch` to the promise returned by `$q.reject` Closes #6048 Closes #6076
2014-01-18docs($q): note that function okToGreet is expected to be defined in exampleletsmakesense
the function okToGreet wasn't defined, so this example wouldn't work properly. I've decided that instead of adding unrelated code to the example, it should just be noted that the function is expected to be defined in the lexical scope. Closes #5878
2013-12-09docs($q): correct typo in the 'Differences Q/$q' sectionRobin Böhm
Closes #5230
2013-11-14docs($q): add missing closing parentheses in code examplersnapp
Closes #4900
2013-10-26docs($q): promises are no longer automatically unwrapped, by defaultrjferguson21
Although it is still possible to turn this on, the feature is deprecated and it is best to remove this mention completely here. Closes #4632
2013-10-22style: make jshint happyVojta Jina
2013-09-10docs($q): clarify what happens when rejectednaorye
Closes #3943
2013-08-29docs($q): document notify behaviorColin Frei
Closes #3341
2013-08-24fix($q): reject should catch & forward exceptions thrown in errbackIgor Minar
2013-08-21fix($q): fix forwarding resolution when callbacks aren't functionsBrian Ford
Uses the changes from @jamestalmage's fix in #3535. (thanks!) Closes #3535
2013-08-09chore($q): rename `promise.always` to `promise.finally`Brian Ford
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);
2013-08-09feat($q): add shorthand for defining promise error handlersbolasblack
Now we can instead this promise.then(null, errorHandler) with this promise.catch(errorhandler) Closes #2048 Closes #3476
2013-07-31fix($q): call `reject()` even if `$exceptionHandler` rethrowsPete Bacon Darwin
Normally $exceptionHandler doesn't throw an exception. It is normally used just for logging and so on. But if an application developer implemented a version that did throw an exception then $q would never have called reject() when converting an exception thrown inside a `then` handler into a rejected promise.
2013-07-14feat($q): added support to promise notificationCaio Cunha
It is now possible to notify a promise through deferred.notify() method. Notifications are useful to provide a way to send progress information to promise holders.
2013-06-13docs($q): fix a few issuesOre Landau
2013-04-28docs($q): fix typoJamie R. Rytlewski
2013-04-24feat($q): add $q.always() methodLaurent Cozic
Add $q.always(callback) method that is always called whether the promise is successful or fails; includes unit tests and updates documentation.
2013-04-16docs($q): fix incorrect @returns tag for $q.when()Francesc Rosàs
2013-02-25feat($q): $q.all() now accepts hashAlexander Shtuchkin
When waiting for several promises at once, it is often desirable to have them by name, not just by index in array. Example of this kind of interface already implemented would be a $routeProvider.when(url, {resolve: <hash of promises>}), where resources/promises are given by names, and then results accessed by names in controller.
2013-02-14docs($q): fix a few typosVineet Kumar
2013-02-07docs($q): fix typosradu
2012-12-14docs(q): added testing informationMiško Hevery
2012-12-07docs($q): typo fix - programing -> programmingEric Case
2012-11-17docs($q): fix missing bracket in the exampleUri Goldshtein
2012-06-12docs(*): simplify doc urlsIgor Minar
we now have two types of namespaces: - true namespace: angular.* - used for all global apis - virtual namespace: ng.*, ngMock.*, ... - used for all DI modules the virual namespaces have services under the second namespace level (e.g. ng.) and filters and directives prefixed with filter: and directive: respectively (e.g. ng.filter:orderBy, ng.directive:ngRepeat) this simplifies urls and makes them a lot shorter while still avoiding name collisions
2012-04-02fix($q): $q.reject should forward callbacks if missingIgor Minar
$q.reject('some reason').then() should not blow up, but correctly forward the callbacks instead. Closes #845
2012-03-28chore(module): move files around in preparation for more modulesMisko Hevery