Permalink
Browse files

Fixed connect event ordering issue in JS.

Updated JS version number to 0.5.1
  • Loading branch information...
1 parent 912013e commit 490f93817fa977ec31e4fcf8198baf9f71b64612 @DamianEdwards DamianEdwards committed Jun 11, 2012
@@ -1,5 +1,5 @@
-/*!
-* SignalR JavaScript Library v0.5
+/*!
+* SignalR JavaScript Library v0.5.1.1
* http://signalr.net/
*
* Copyright David Fowler and Damian Edwards 2012
@@ -1,5 +1,5 @@
-/*!
-* SignalR JavaScript Library v0.5
+/*!
+* SignalR JavaScript Library v0.5.1.1
* http://signalr.net/
*
* Copyright David Fowler and Damian Edwards 2012
@@ -215,10 +215,10 @@
transport.start(connection, function () { // success
connection.transport = transport;
- $(connection).trigger(events.onStart);
-
changeState(connection, signalR.connectionState.connected);
+ $(connection).trigger(events.onStart);
+
$(window).unload(function () { // failure
connection.stop(false /* async */);
});
Oops, something went wrong.
@@ -1,5 +1,5 @@
/*!
-* SignalR JavaScript Library v0.5
+* SignalR JavaScript Library v0.5.1.1
* http://signalr.net/
*
* Copyright David Fowler and Damian Edwards 2012
@@ -1,5 +1,5 @@
-/*!
-* SignalR JavaScript Library v0.5
+/*!
+* SignalR JavaScript Library v0.5.1.1
* http://signalr.net/
*
* Copyright David Fowler and Damian Edwards 2012
@@ -215,10 +215,10 @@
transport.start(connection, function () { // success
connection.transport = transport;
- $(connection).trigger(events.onStart);
-
changeState(connection, signalR.connectionState.connected);
+ $(connection).trigger(events.onStart);
+
$(window).unload(function () { // failure
connection.stop(false /* async */);
});
Oops, something went wrong.
@@ -1,5 +1,5 @@
-/*!
-* SignalR JavaScript Library v0.5
+/*!
+* SignalR JavaScript Library v0.5.1.1
* http://signalr.net/
*
* Copyright David Fowler and Damian Edwards 2012
@@ -215,10 +215,10 @@
transport.start(connection, function () { // success
connection.transport = transport;
- $(connection).trigger(events.onStart);
-
changeState(connection, signalR.connectionState.connected);
+ $(connection).trigger(events.onStart);
+
$(window).unload(function () { // failure
connection.stop(false /* async */);
});
Oops, something went wrong.
@@ -1,5 +1,5 @@
-/*!
-* SignalR JavaScript Library v0.5
+/*!
+* SignalR JavaScript Library v0.5.1.1
* http://signalr.net/
*
* Copyright David Fowler and Damian Edwards 2012
@@ -215,10 +215,10 @@
transport.start(connection, function () { // success
connection.transport = transport;
- $(connection).trigger(events.onStart);
-
changeState(connection, signalR.connectionState.connected);
+ $(connection).trigger(events.onStart);
+
$(window).unload(function () { // failure
connection.stop(false /* async */);
});
Oops, something went wrong.

0 comments on commit 490f938

Please sign in to comment.