
Security News
NVD Quietly Sweeps 100K+ CVEs Into a “Deferred” Black Hole
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.
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 0 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
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.
Research
Security News
Lazarus-linked threat actors expand their npm malware campaign with new RAT loaders, hex obfuscation, and over 5,600 downloads across 11 packages.
Security News
Safari 18.4 adds support for Iterator Helpers and two other TC39 JavaScript features, bringing full cross-browser coverage to key parts of the ECMAScript spec.