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

Commit 15efbbd

Browse files
committed
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 67a3315 commit 15efbbd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
Angular with
8787
[Unicode Technical Standard #35](http://unicode.org/reports/tr35/#Date_Format_Patterns) used by
8888
Closure, as well as, future DOM apis currently being proposed to w3c.
89+
- `$xhr.error`'s `request` argument has no `callback` property anymore, use `success` instead
8990

9091

9192

src/service/xhr.error.js

Lines changed: 1 addition & 1 deletion
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)