mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-01 19:54:45 +00:00
fix($xhr.error): fix docs and add missed breaking change
$xhr.error's first argument (request) has no callback property anymore,
it's called success now...
This breaking change was introduced by b5594a773a
This commit is contained in:
parent
a01cf6d39e
commit
fd792de9e8
2 changed files with 2 additions and 1 deletions
|
|
@ -70,6 +70,7 @@
|
||||||
Angular with
|
Angular with
|
||||||
[Unicode Technical Standard #35](http://unicode.org/reports/tr35/#Date_Format_Patterns) used by
|
[Unicode Technical Standard #35](http://unicode.org/reports/tr35/#Date_Format_Patterns) used by
|
||||||
Closure, as well as, future DOM apis currently being proposed to w3c.
|
Closure, as well as, future DOM apis currently being proposed to w3c.
|
||||||
|
- `$xhr.error`'s `request` argument has no `callback` property anymore, use `success` instead
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
* - `method` – `{string}` – The http request method.
|
* - `method` – `{string}` – The http request method.
|
||||||
* - `url` – `{string}` – The request destination.
|
* - `url` – `{string}` – The request destination.
|
||||||
* - `data` – `{(string|Object)=} – An optional request body.
|
* - `data` – `{(string|Object)=} – An optional request body.
|
||||||
* - `callback` – `{function()}` – The callback function
|
* - `success` – `{function()}` – The success callback function
|
||||||
*
|
*
|
||||||
* @param {Object} response Response object.
|
* @param {Object} response Response object.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue