justintadlock / butterbean

A neat little post meta framework.
GNU General Public License v2.0
204 stars 31 forks source link

Models should be public in butterbean.js #24

Open justintadlock opened 7 years ago

justintadlock commented 7 years ago

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() {};
timelsass commented 7 years ago

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

justintadlock commented 7 years ago

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.