Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. var t = {
  2. nestedOne: {
  3. nest: function() {
  4. alert('nest');
  5. this.nestedTwo.nest2();
  6. },
  7. nest3: function() {
  8. alert('nest3');
  9. },
  10. nestedTwo: {
  11. nest2: function() {
  12. alert('nest2');
  13. t.nestedOne.nest3();
  14. }
  15. }
  16. }
  17. };
  18.  
  19. t.nestedOne.nest();
  20.  
  21. // *** Output is nest, nest2 and nest3 ***
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement