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.1.1 to 0.1.2

10

index.js

@@ -10,10 +10,10 @@ (function () {

var proto = Backbone.Model.prototype;
var initialize = proto.initialize;
var constructor = proto.constructor;
var get = proto.get;
var set = proto.set;
_.extend(proto, {
initialize: function (attrs, options) {
Backbone.Model = Backbone.Model.extend({
constructor: function (attrs, options) {
if (this.relations) this.relations = this.relations();
return initialize.call(this, attrs, options);
return constructor.call(this, attrs, options);
},

@@ -81,2 +81,4 @@

});
_.extend(Backbone.Collection.prototype, {model: Backbone.Model});
})();

2

package.json
{
"name": "backbone-relations",
"version": "0.1.1",
"version": "0.1.2",
"author": "Casey Foster <c@sey.me>",

@@ -5,0 +5,0 @@ "licence": "MIT",

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