joose

Joose singleton initialization arguments

I have a singleton class based on Joose and I would like to add initialization arguments to it like this: var programs = Programs.getInstance({ tabContainer: '#tab' }); tabContainer is also declared as an attribute to the singleton. In my after method modifier initialization method, I track to see if the arguments passed in was...

How do you use asynchronous ORMs without huge callback chains?

I'm using the relatively immature Joose Javascript ORM plugin (project page) to persist objects in an Appcelerator Titanium (company page) mobile project. Since it's client side storage, the application has to check to see if the database is initialized before starting up the ORM since it inspects the DB tables to construct the classes. ...