[Pkg-javascript-commits] [sockjs-client] 10/350: Add the ready state constants to the SockJS prototype

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:03:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.

commit bfa614dec885633d645a87d79a1b1ceaf136c66a
Author: Manuel Stofer <manuelstofer at gmail.com>
Date:   Thu Jan 16 12:25:01 2014 +0900

    Add the ready state constants to the SockJS prototype
---
 lib/sockjs.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/sockjs.js b/lib/sockjs.js
index c3f7417..12de0f7 100644
--- a/lib/sockjs.js
+++ b/lib/sockjs.js
@@ -65,10 +65,10 @@ SockJS.prototype = new REventTarget();
 
 SockJS.version = "<!-- version -->";
 
-SockJS.CONNECTING = 0;
-SockJS.OPEN = 1;
-SockJS.CLOSING = 2;
-SockJS.CLOSED = 3;
+SockJS.prototype.CONNECTING = SockJS.CONNECTING = 0;
+SockJS.prototype.OPEN = SockJS.OPEN = 1;
+SockJS.prototype.CLOSING = SockJS.CLOSING = 2;
+SockJS.prototype.CLOSED = SockJS.CLOSED = 3;
 
 SockJS.prototype._debug = function() {
     if (this._options.debug)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list