I'm having trouble getting the following code to work properly. Every time I try to access the private testing variable from the priveleged MyMethod it gives an error. Says it can't find testing and that it has no properties so I can't run a push() command on it.
var testing = new Array();
// define the method
// make the method priveledged
this.MyMethod = MyMethod;
// a test function it ensure the variables declared here are isolated
var myClass = new MyClass();
document.write("[" + myClass.testing + "]");