butterbean
butterbean copied to clipboard
Models should be public in butterbean.js
We need public access to models. This way, they can be manipulated for various reasons. Models should be stored based on name/ID of the manager, section or control rather than the type as done with views and templates.
Proposed:
butterbean.models = {};
// Store models.
butterbean.models.managers = {};
butterbean.models.sections = {};
butterbean.models.controls = {};
// Functions (* is for manager, section, or control).
butterbean.models.register_* = function() {};
butterbean.models.unregsiter_* = function() {};
butterbean.models.*_exists = function() {};
butterbean.models.get_* = function() {};
It's been a couple of months, any word on when the next release date will be that incorporates this? This is helpful in so many ways
I might shoot for a January or so date of a second major release. If I have time from other projects before then, I'll sit down with it.