Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix(annotations): call super() when extends
Browse files Browse the repository at this point in the history
Closes #102
  • Loading branch information
dmtrs authored and caitp committed May 16, 2015
1 parent 61d8278 commit 9fd8c04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/annotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Inject {

class InjectPromise extends Inject {
constructor(...tokens) {
super();
this.tokens = tokens;
this.isPromise = true;
this.isLazy = false;
Expand All @@ -34,6 +35,7 @@ class InjectPromise extends Inject {

class InjectLazy extends Inject {
constructor(...tokens) {
super();
this.tokens = tokens;
this.isPromise = false;
this.isLazy = true;
Expand All @@ -49,6 +51,7 @@ class Provide {

class ProvidePromise extends Provide {
constructor(token) {
super();
this.token = token;
this.isPromise = true;
}
Expand Down

0 comments on commit 9fd8c04

Please sign in to comment.