backbone-relations
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -17,6 +17,2 @@ (function (root, factory) { | ||
var OwnerList = herit(Array, { | ||
constructor: function () { this.push.apply(this, arguments); } | ||
}); | ||
var Relation = herit({ | ||
@@ -50,16 +46,2 @@ constructor: function (options) { | ||
); | ||
}, | ||
proxyEvent: function () { | ||
var owners = _.find(arguments, function (argument) { | ||
return argument instanceof OwnerList; | ||
}); | ||
if (!owners) { | ||
owners = new OwnerList(this.instance); | ||
[].push.call(arguments, owners); | ||
} | ||
if (_.contains(owners, this.owner)) return; | ||
owners.push(this.owner); | ||
arguments[0] = this.key + ':' + arguments[0]; | ||
this.owner.trigger.apply(this.owner, arguments); | ||
} | ||
@@ -100,3 +82,3 @@ }); | ||
} | ||
return instance.on('all', this.proxyEvent, this); | ||
return instance; | ||
}, | ||
@@ -125,3 +107,3 @@ | ||
} | ||
return instance.on('all', this.proxyEvent, this); | ||
return instance; | ||
} | ||
@@ -128,0 +110,0 @@ }); |
{ | ||
"name": "backbone-relations", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"main": "./backbone-relations.js", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
{ | ||
"name": "backbone-relations", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"author": "Casey Foster <c@sey.me>", | ||
@@ -5,0 +5,0 @@ "licence": "MIT", |
Sorry, the diff of this file is not supported yet
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
35486
173