butterbean icon indicating copy to clipboard operation
butterbean copied to clipboard

Models should be public in butterbean.js

Open justintadlock opened this issue 8 years ago • 2 comments

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() {};

justintadlock avatar Sep 01 '16 20:09 justintadlock

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

timelsass avatar Nov 07 '16 22:11 timelsass

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.

justintadlock avatar Nov 10 '16 20:11 justintadlock