Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var sample = (function(){
- var _return = [];
- _return.bar = function(){
- alert("hello world");
- };
- _return.foo = function(){
- function test(){
- this.bar();
- };
- };
- })();
- sample.foo();
- _return.foo = function(){
- var self = this;
- function test(){
- self.bar();
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement