Comparing version 0.2.15 to 0.2.16
@@ -26,6 +26,3 @@ // Generated by CoffeeScript 1.4.0 | ||
return highbrow.Backbone.sync = function(method, model, options) { | ||
var req, res, timeout, url; | ||
timeout = setTimeout((function() { | ||
return options.error("Server Backbone.sync timeout"); | ||
}), 1000); | ||
var req, res, url; | ||
url = options.url; | ||
@@ -35,2 +32,5 @@ if (url == null) { | ||
} | ||
if (url.slice(0, 2) === '//') { | ||
url = 'http:' + url; | ||
} | ||
req = _.extend({}, baseRequest, defaultRequest, { | ||
@@ -46,3 +46,2 @@ method: methodMap[method], | ||
send: function(status, json) { | ||
clearTimeout(timeout); | ||
if (!_.isNumber(status)) { | ||
@@ -49,0 +48,0 @@ json = status; |
@@ -1873,6 +1873,3 @@ /* | ||
return highbrow.Backbone.sync = function(method, model, options) { | ||
var req, res, timeout, url; | ||
timeout = setTimeout((function() { | ||
return options.error("Server Backbone.sync timeout"); | ||
}), 1000); | ||
var req, res, url; | ||
url = options.url; | ||
@@ -1882,2 +1879,5 @@ if (url == null) { | ||
} | ||
if (url.slice(0, 2) === '//') { | ||
url = 'http:' + url; | ||
} | ||
req = _.extend({}, baseRequest, defaultRequest, { | ||
@@ -1893,3 +1893,2 @@ method: methodMap[method], | ||
send: function(status, json) { | ||
clearTimeout(timeout); | ||
if (!_.isNumber(status)) { | ||
@@ -1896,0 +1895,0 @@ json = status; |
{ "name": "highbrow" | ||
, "version": "0.2.15" | ||
, "version": "0.2.16" | ||
, "description": "A Backbone Base Framework" | ||
@@ -4,0 +4,0 @@ , "main": "lib/highbrow.js" |
Sorry, the diff of this file is not supported yet
323649
5475