Permalink
Browse files

Fixed issue with returning ajax request.

  • Loading branch information...
1 parent b1d9d92 commit f7ecdaea4e644a10239d82118dba016f555167d0 @davidfowl davidfowl committed Jun 30, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 Kudu.Web/Scripts/signalR.js
View
5 Kudu.Web/Scripts/signalR.js
@@ -68,9 +68,8 @@
}
var args = $.makeArray([that]).concat($.makeArray(arguments));
- transport.send.apply(transport, args);
- return that;
+ return transport.send.apply(transport, args);
},
sending: function (callback) {
@@ -135,7 +134,7 @@
/// <param name="connection" type="signalR">The signalR connection to send data over</param>
/// <param name="data" type="String">The data to send</param>
/// <param name="callback" type="Function">A callback to be invoked when the send has completed</param>
- $.ajax(connection.url + '/send', {
+ return $.ajax(connection.url + '/send', {
type: "POST",
data: { data: data, transport: "longPolling" },
dataType: "json",

0 comments on commit f7ecdae

Please sign in to comment.