backbone-relations
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -26,6 +26,6 @@ (function () { | ||
resolveVia: function () { | ||
resolve: function () { | ||
if (!this.via) return this.get(); | ||
var split = this.via.split('#'); | ||
var models = this.owner.via(split[0]).pluck(split[1] || this.key); | ||
var models = this.owner.resolve(split[0]).pluck(split[1] || this.key); | ||
return new this.hasMany( | ||
@@ -135,6 +135,6 @@ models[0] instanceof this.hasMany ? | ||
via: function (key) { | ||
resolve: function (key) { | ||
var relations = this.relations; | ||
if (!relations || !relations[key]) return; | ||
return relations[key].resolveVia(key); | ||
return relations[key].resolve(key); | ||
} | ||
@@ -141,0 +141,0 @@ }); |
{ | ||
"name": "backbone-relations", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"author": "Casey Foster <c@sey.me>", | ||
@@ -5,0 +5,0 @@ "licence": "MIT", |
6448