backbone-relations
Advanced tools
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}); | ||
})(); |
{ | ||
"name": "backbone-relations", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": "Casey Foster <c@sey.me>", | ||
@@ -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
4713
75