From edf96fdd215887aef916644763b39db70965fda1 Mon Sep 17 00:00:00 2001 From: Ivo Stratev Date: Thu, 8 Sep 2016 19:29:39 +0300 Subject: [PATCH] Fixing method naming --- autobind-decorator/autobind-decorator-tests.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autobind-decorator/autobind-decorator-tests.ts b/autobind-decorator/autobind-decorator-tests.ts index 693e070183..e428604802 100644 --- a/autobind-decorator/autobind-decorator-tests.ts +++ b/autobind-decorator/autobind-decorator-tests.ts @@ -32,12 +32,12 @@ class Component { this.someMember = someMember; } - public somMethod(): void { + public someMethod(): void { console.error(this.someMember); } } const component: Component = new Component('React vs Angular2'); -const { somMethod } = component; +const { someMethod } = component; component.someMethod(); // errors 'React vs Angular2' -somMethod(); // errors 'React vs Angular2' +someMethod(); // errors 'React vs Angular2'