Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backbone-relations

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone-relations - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

22

backbone-relations.js

@@ -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 @@ });

2

bower.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc