I namespace my models and a single controller like this:
var MC = {};
and then added properties as needed.
For example, the code th
Is there a simple way to add privacy to my models and still have them accessible as properties in an object?
Obviously, you then will need to make the whole object private. And yes, that will work as any other privacy in JavaScript, too - a closure.
Have a look at the module pattern (there are many tutorials out on the web about this).