Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
backbone-parentmodel
Advanced tools
Extensions to Backbone.Model to support nested models and collections
backbone-parentmodel provides a set of extensions to Backbone.Model for working with nested structures where logic is assigned to nested Models and Collections. The core functionality overrides clone
, clear
, toJSON
, and parse
methods to handle the nesting and provides a few additional utility methods.
Nested structures are defined as:
const MyModel = ParentModel.extend({
childModels: {
myModel: MyModelConstructor
},
childCollections: {
myCollection: MyCollectionConstructor
}
})
childModels and childCollections must either be an object mapping property names to their constructors, or they may be functions returning an object mapping.
This package is published to npm and can be installed with
npm install backbone-parentmodel
See our docs folder for more detailed documentation.
We encourage you to contribute to this project!
Please read our contributing guide for guidelines on:
Please contact one of the project maintainers with any project issues or questions.
FAQs
Extensions to Backbone.Model to support nested models and collections
The npm package backbone-parentmodel receives a total of 2 weekly downloads. As such, backbone-parentmodel popularity was classified as not popular.
We found that backbone-parentmodel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.