Skip to content

Instantly share code, notes, and snippets.

@robkuz
Created March 5, 2013 17:04
Show Gist options
  • Select an option

  • Save robkuz/5091870 to your computer and use it in GitHub Desktop.

Select an option

Save robkuz/5091870 to your computer and use it in GitHub Desktop.
just a bit of function movement ...
class A
foo: -> "foo"
bar: (cb)-> cb()
a = new A
b = a.bar
b a.foo #gets me "foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment