Created
October 4, 2012 22:51
-
-
Save jedahan/3836962 to your computer and use it in GitHub Desktop.
scoping hell
This file contains hidden or 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
| fs = require 'fs' | |
| class ScopeTest | |
| q: [] | |
| init: -> | |
| @q.push "outer" | |
| fs.stat __filename, (e, s) => | |
| @q.push "inner" | |
| console.log @q | |
| input: -> | |
| console.log @q | |
| test = new ScopeTest() | |
| test.init() | |
| test.input() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment