Skip to content

Commit

Permalink
chore(all): prepare release 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Feb 12, 2015
1 parent 01628f4 commit 967cf8a
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-http-client",
"version": "0.5.1",
"version": "0.5.2",
"description": "A simple, restful, message-based wrapper around XMLHttpRequest.",
"keywords": [
"aurelia",
Expand Down
7 changes: 5 additions & 2 deletions dist/amd/http-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ define(["exports", "./headers", "./request-builder", "./http-request-message", "
client.pendingRequests.splice(index, 1);
client.isRequesting = client.pendingRequests.length > 0;

if (!client.isRequesting && client.onRequestsComplete) {
client.onRequestsComplete();
if (!client.isRequesting) {
var evt = new window.CustomEvent("aurelia-http-client-requests-drained", { bubbles: true, cancelable: true });
setTimeout(function () {
return document.dispatchEvent(evt);
}, 1);
}
}

Expand Down
7 changes: 5 additions & 2 deletions dist/commonjs/http-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ function trackRequestEnd(client, processor) {
client.pendingRequests.splice(index, 1);
client.isRequesting = client.pendingRequests.length > 0;

if (!client.isRequesting && client.onRequestsComplete) {
client.onRequestsComplete();
if (!client.isRequesting) {
var evt = new window.CustomEvent("aurelia-http-client-requests-drained", { bubbles: true, cancelable: true });
setTimeout(function () {
return document.dispatchEvent(evt);
}, 1);
}
}

Expand Down
5 changes: 3 additions & 2 deletions dist/es6/http-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ function trackRequestEnd(client, processor){
client.pendingRequests.splice(index, 1);
client.isRequesting = client.pendingRequests.length > 0;

if(!client.isRequesting && client.onRequestsComplete){
client.onRequestsComplete();
if(!client.isRequesting){
var evt = new window.CustomEvent('aurelia-http-client-requests-drained', { bubbles: true, cancelable: true });
setTimeout(() => document.dispatchEvent(evt), 1);
}
}

Expand Down
7 changes: 5 additions & 2 deletions dist/system/http-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ System.register(["./headers", "./request-builder", "./http-request-message", "./
client.pendingRequests.splice(index, 1);
client.isRequesting = client.pendingRequests.length > 0;

if (!client.isRequesting && client.onRequestsComplete) {
client.onRequestsComplete();
if (!client.isRequesting) {
var evt = new window.CustomEvent("aurelia-http-client-requests-drained", { bubbles: true, cancelable: true });
setTimeout(function () {
return document.dispatchEvent(evt);
}, 1);
}
}

Expand Down
8 changes: 8 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 0.5.2 (2015-02-12)


#### Bug Fixes

* **event:** switch from hook to event ([01628f42](http://github.com/aurelia/http-client/commit/01628f42884c899ea5b6cc64ac118e5c8f9413c1))


### 0.5.1 (2015-02-12)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-http-client",
"version": "0.5.1",
"version": "0.5.2",
"description": "A simple, restful, message-based wrapper around XMLHttpRequest.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 967cf8a

Please sign in to comment.