Skip to content

Instantly share code, notes, and snippets.

@zakki
Created July 23, 2014 06:41
Show Gist options
  • Save zakki/04d2d73b1b2d13280e65 to your computer and use it in GitHub Desktop.
Save zakki/04d2d73b1b2d13280e65 to your computer and use it in GitHub Desktop.
class A {
private m = 123;
func(ev: Event) {
console.log(this);
console.log(this.m);
}
}
var a = new A();
window.onload = a.func;
window.onclick = e => a.func(e);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment