Skip to content

Commit fd792de

Browse files
vojtajinaIgorMinar
authored andcommitted
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 b5594a7
1 parent a01cf6d commit fd792de

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
Angular with
7171
[Unicode Technical Standard #35](http://unicode.org/reports/tr35/#Date_Format_Patterns) used by
7272
Closure, as well as, future DOM apis currently being proposed to w3c.
73+
- `$xhr.error`'s `request` argument has no `callback` property anymore, use `success` instead
7374

7475

7576

src/service/xhr.error.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* - `method` – `{string}` – The http request method.
2020
* - `url` – `{string}` – The request destination.
2121
* - `data` – `{(string|Object)=} – An optional request body.
22-
* - `callback` – `{function()}` – The callback function
22+
* - `success` – `{function()}` – The success callback function
2323
*
2424
* @param {Object} response Response object.
2525
*

0 commit comments

Comments
 (0)