public
Created

2 levels deep

  • Download Gist
2 levels deep.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11
var myApplication = {};
 
myApplication.instance = {
msg : "Hello world!",
hello : function() {
alert(myApplication.instance.msg);
}
}
 
 
myApplication.instance.hello();

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.