Skip to content

Commit

Permalink
Moved url for $.ajax calls to the to the options object.
Browse files Browse the repository at this point in the history
Fixes #328
Fixes #145
  • Loading branch information
davidfowl authored and jrsconfitto committed May 18, 2012
1 parent 950d241 commit dab302a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 21 deletions.
13 changes: 7 additions & 6 deletions SignalR/Scripts/jquery.signalR.js
Expand Up @@ -138,7 +138,9 @@
};

window.setTimeout(function () {
$.ajax(connection.url + "/negotiate", {
var url = connection.url + "/negotiate";
$.ajax({
url: url,
global: false,
cache: false,
type: "GET",
Expand Down Expand Up @@ -358,7 +360,8 @@

var url = connection.url + "/send" + "?transport=" + connection.transport.name + "&connectionId=" + window.escape(connection.id);
url = this.addQs(url, connection);
$.ajax(url, {
$.ajax({
url: url,
global: false,
type: "POST",
dataType: connection.ajaxDataType,
Expand Down Expand Up @@ -804,13 +807,11 @@
reconnectTimeOut = null,
reconnectFired = false;

instance.pollXhr = $.ajax(url, {
instance.pollXhr = $.ajax({
url: url,
global: false,

type: "GET",

dataType: connection.ajaxDataType,

success: function (data) {
var delay = 0,
timedOutReceived = false;
Expand Down

0 comments on commit dab302a

Please sign in to comment.