HTML5 Zone is brought to you in partnership with:

Hirvesh Munogee is a freelance web developer who also happens to have a passion for blogging. Hirvesh is a DZone MVB and is not an employee of DZone and has posted 177 posts at DZone. You can read more from them at their website. View Full User Profile

Supermodel.js - Minimal Model Tracking For Backbone.js

01.04.2013
| 4175 views |
  • submit to reddit

 

Supermodel. js is a Backbone.js component which provides minimal tracking for models. Often when creating Backbone.js applications, we have several models representing the same server object. 

If for example, there are several models representing a certain server object, where and some of them are fetching the data from the server while the data is being updated, this might cause synchronization problems and some models might have stale data.

This is where Supermodel.js steps in.  It resolves those synchronization problems by extending Backbone.Model with Supermodel.Model which handles the tracking and creation of individual models.

Requirements: Backbone.js
Demo:http:/ / pathable. github. com/ supermodel/
License: MIT License



Published at DZone with permission of Hirvesh Munogee, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)