Hi List, I wrote a small Mixin whose job is to handle and save user login data. I added it to all of my classes, so that I can use something like this.getCurrentUserId() from anywhere.
The user_id is saved in a statics section of the Mixin. I would like to save more data in the statics section of the Mixin, e.g. the entire list of users in my db (I am not concerned with security as this is an in-house app and there is no user data which is sensitive in the db). My question is (sorry if its a bit obvious) - is the data saved in the statics section be inserted into all my classes, or is it only saved in one place and a reference to the data is shared with all apps (as I assume it does)? A more general question is - if I want to save some initial application data which I load at the app startup, should I create a special singleton class for it, or is simply saving the data in a statics section of a class enough? Will I have to save the data anyway in a statics section of the singleton? Thanks, Omri -- View this message in context: http://qooxdoo.678.n2.nabble.com/Statics-in-Mixins-tp7412799p7412799.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
