Skip to content

Instantly share code, notes, and snippets.

@jedahan
Created October 4, 2012 22:51
Show Gist options
  • Select an option

  • Save jedahan/3836962 to your computer and use it in GitHub Desktop.

Select an option

Save jedahan/3836962 to your computer and use it in GitHub Desktop.
scoping hell
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