Skip to content

Commit

Permalink
preparing release of version 0.9.7
Browse files Browse the repository at this point in the history
  • Loading branch information
amvtek committed May 30, 2015
1 parent 6d5a930 commit 32c3cfc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/browserify-eventsource.js
@@ -1,5 +1,5 @@
/*
* CommonJS module that exports EventSource polyfill version 0.9.6
* CommonJS module that exports EventSource polyfill version 0.9.7
* This module is intended for browser side use
* =====================================================================
* THIS IS A POLYFILL MODULE, SO IT HAS SIDE EFFECTS
Expand Down
10 changes: 5 additions & 5 deletions dist/eventsource.js
@@ -1,5 +1,5 @@
/*
* EventSource polyfill version 0.9.6
* EventSource polyfill version 0.9.7
* Supported by sc AmvTek srl
* :email: devel@amvtek.com
*/
Expand Down Expand Up @@ -176,7 +176,7 @@
this.cleanup();
},

ondata: function() {
_onxhrdata: function() {

var request = this._xhr;

Expand Down Expand Up @@ -413,7 +413,7 @@
request.onreadystatechange = function(){
if (request.readyState > 1 && evs.readyState != evs.CLOSED) {
if (request.status == 200 || (request.status>=300 && request.status<400)){
evs.ondata();
evs._onxhrdata();
}
else {
request._failed = true;
Expand Down Expand Up @@ -505,12 +505,12 @@
// set handlers
request.onprogress = function(){
request._ready = true;
evs.ondata();
evs._onxhrdata();
};

request.onload = function(){
this._loaded = true;
evs.ondata();
evs._onxhrdata();
};

request.onerror = function(){
Expand Down
2 changes: 1 addition & 1 deletion dist/eventsource.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "eventsource-polyfill",
"version": "0.9.6",
"version": "0.9.7",
"description": "A browser polyfill for W3C EventSource (http://www.w3.org/TR/eventsource/)",
"main": "dist/browserify-eventsource.js",
"directories": { "doc": "docs" },
Expand Down

0 comments on commit 32c3cfc

Please sign in to comment.