Last active
December 24, 2015 09:09
-
-
Save phadej/6774897 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jshint indent:4, scopeshadow:true */ | |
(function () { | |
"use strict"; | |
(function () { | |
function foo() { | |
function bar() {} | |
return { | |
bar: bar | |
}; | |
} | |
var bar = foo().bar; | |
return bar; | |
})(); | |
(function () { | |
var bar = foo().bar; | |
function foo() { | |
function bar() {} | |
return { | |
bar: bar | |
}; | |
} | |
return bar; | |
}()); | |
(function () { | |
function bar() { | |
return foo().bar(); | |
} | |
function foo() { | |
function bar() {} | |
return { | |
bar: bar | |
}; | |
} | |
return bar; | |
}()); | |
(function () { | |
function foo() { | |
function bar() {} | |
return { | |
bar: bar | |
}; | |
} | |
function bar() { | |
return foo().bar(); | |
} | |
return bar; | |
}()); | |
(function () { | |
function bar() { | |
return foo().bar(); | |
} | |
function foo() { | |
var bar = function () {}; | |
return { | |
bar: bar | |
}; | |
} | |
return bar; | |
}()); | |
(function () { | |
function foo() { | |
var bar = function () {}; | |
return { | |
bar: bar | |
}; | |
} | |
function bar() { | |
return foo().bar(); | |
} | |
return bar; | |
}()); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment