Comparing version 0.2.19 to 0.2.20
@@ -977,3 +977,3 @@ // Generated by CoffeeScript 1.4.0 | ||
} | ||
return this.urlRoot.replace(":parent", (_ref1 = this.parent) != null ? _ref1.url() : void 0); | ||
return _.result(this, 'urlRoot').replace(":parent", (_ref1 = this.parent) != null ? _ref1.url() : void 0); | ||
}; | ||
@@ -1042,5 +1042,17 @@ | ||
PaginatedCollection.prototype.queryString = function(opts, exclude) { | ||
var attrs; | ||
if (exclude == null) { | ||
exclude = {}; | ||
} | ||
attrs = _.extend({}, this.query, opts || {}); | ||
_.each(exclude.reset, function(k) { | ||
return delete attrs[k]; | ||
}); | ||
return highbrow.querystring.stringify(attrs); | ||
}; | ||
PaginatedCollection.prototype.url = function() { | ||
var _ref1; | ||
return this.urlRoot.replace(':parent', (_ref1 = this.parent) != null ? _ref1.url() : void 0) + '?' + this.queryParams(); | ||
return _.result(this, 'urlRoot').replace(':parent', (_ref1 = this.parent) != null ? _ref1.url() : void 0) + '?' + this.queryParams(); | ||
}; | ||
@@ -1362,3 +1374,3 @@ | ||
} | ||
return this.setElement(this.make(this.tagName, attrs), false); | ||
return this.setElement(this.make(_.result(this, 'tagName'), attrs), false); | ||
}; | ||
@@ -1365,0 +1377,0 @@ |
@@ -986,3 +986,3 @@ /* | ||
} | ||
return this.urlRoot.replace(":parent", (_ref1 = this.parent) != null ? _ref1.url() : void 0); | ||
return _.result(this, 'urlRoot').replace(":parent", (_ref1 = this.parent) != null ? _ref1.url() : void 0); | ||
}; | ||
@@ -1051,5 +1051,17 @@ | ||
PaginatedCollection.prototype.queryString = function(opts, exclude) { | ||
var attrs; | ||
if (exclude == null) { | ||
exclude = {}; | ||
} | ||
attrs = _.extend({}, this.query, opts || {}); | ||
_.each(exclude.reset, function(k) { | ||
return delete attrs[k]; | ||
}); | ||
return highbrow.querystring.stringify(attrs); | ||
}; | ||
PaginatedCollection.prototype.url = function() { | ||
var _ref1; | ||
return this.urlRoot.replace(':parent', (_ref1 = this.parent) != null ? _ref1.url() : void 0) + '?' + this.queryParams(); | ||
return _.result(this, 'urlRoot').replace(':parent', (_ref1 = this.parent) != null ? _ref1.url() : void 0) + '?' + this.queryParams(); | ||
}; | ||
@@ -1371,3 +1383,3 @@ | ||
} | ||
return this.setElement(this.make(this.tagName, attrs), false); | ||
return this.setElement(this.make(_.result(this, 'tagName'), attrs), false); | ||
}; | ||
@@ -1374,0 +1386,0 @@ |
@@ -987,3 +987,3 @@ /* | ||
} | ||
return this.urlRoot.replace(":parent", (_ref1 = this.parent) != null ? _ref1.url() : void 0); | ||
return _.result(this, 'urlRoot').replace(":parent", (_ref1 = this.parent) != null ? _ref1.url() : void 0); | ||
}; | ||
@@ -1052,5 +1052,17 @@ | ||
PaginatedCollection.prototype.queryString = function(opts, exclude) { | ||
var attrs; | ||
if (exclude == null) { | ||
exclude = {}; | ||
} | ||
attrs = _.extend({}, this.query, opts || {}); | ||
_.each(exclude.reset, function(k) { | ||
return delete attrs[k]; | ||
}); | ||
return highbrow.querystring.stringify(attrs); | ||
}; | ||
PaginatedCollection.prototype.url = function() { | ||
var _ref1; | ||
return this.urlRoot.replace(':parent', (_ref1 = this.parent) != null ? _ref1.url() : void 0) + '?' + this.queryParams(); | ||
return _.result(this, 'urlRoot').replace(':parent', (_ref1 = this.parent) != null ? _ref1.url() : void 0) + '?' + this.queryParams(); | ||
}; | ||
@@ -1372,3 +1384,3 @@ | ||
} | ||
return this.setElement(this.make(this.tagName, attrs), false); | ||
return this.setElement(this.make(_.result(this, 'tagName'), attrs), false); | ||
}; | ||
@@ -1375,0 +1387,0 @@ |
{ "name": "highbrow" | ||
, "version": "0.2.19" | ||
, "version": "0.2.20" | ||
, "description": "A Backbone Base Framework" | ||
@@ -4,0 +4,0 @@ , "main": "lib/highbrow.js" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
325737
5529