Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var t = {
- nestedOne: {
- nest: function() {
- alert('nest');
- this.nestedTwo.nest2();
- },
- nest3: function() {
- alert('nest3');
- },
- nestedTwo: {
- nest2: function() {
- alert('nest2');
- t.nestedOne.nest3();
- }
- }
- }
- };
- t.nestedOne.nest();
- // *** Output is nest, nest2 and nest3 ***
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement