backbone-relations
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -97,3 +97,3 @@ // Generated by CoffeeScript 1.4.0 | ||
(models.filters = {})[theirs] = model; | ||
models.listenTo(ctor.cache(), 'add', function(other) { | ||
models.listenTo(ctor.cache(), "add change:" + theirs, function(other) { | ||
if (model.id && model.id == other.get(theirs)) { | ||
@@ -103,8 +103,3 @@ return this.add(other); | ||
}); | ||
models.listenTo(ctor.cache(), "change:" + theirs, function(other, val) { | ||
if (model.id == val) { | ||
return this.add(other); | ||
} | ||
}); | ||
models.on("change:" + theirs, function(other, val) { | ||
models.on("change:" + theirs, function(other) { | ||
return this.remove(other); | ||
@@ -135,3 +130,3 @@ }); | ||
(via.filters = {})[mine] = model; | ||
via.listenTo(viaCtor.cache(), 'add', function(other) { | ||
via.listenTo(viaCtor.cache(), "add change:" + mine, function(other) { | ||
if (model.id && model.id == other.get(mine)) { | ||
@@ -141,7 +136,2 @@ return this.add(other); | ||
}); | ||
via.listenTo(viaCtor.cache(), "change:" + mine, function(other, val) { | ||
if (model.id == val) { | ||
return this.add(other); | ||
} | ||
}); | ||
via.on("change:" + mine, function(other, val) { | ||
@@ -148,0 +138,0 @@ return this.remove(other); |
{ | ||
"name": "backbone-relations", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"author": "Casey Foster <casey@caseywebdev.com>", | ||
@@ -5,0 +5,0 @@ "licence": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10013
196