Skip to content

Commit

Permalink
Merge pull request #5 from fabrix-app/v1.5
Browse files Browse the repository at this point in the history
[feat] LTS 1.5
  • Loading branch information
scott-wyatt authored Sep 17, 2018
2 parents d09c435 + e3e0413 commit f127e78
Show file tree
Hide file tree
Showing 4 changed files with 315 additions and 1,216 deletions.
8 changes: 0 additions & 8 deletions lib/Generic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import { FabrixApp } from '@fabrix/fabrix'
import { FabrixGeneric } from '@fabrix/fabrix/dist/common'

export class Generic extends FabrixGeneric {
private _app: FabrixApp
private _config: {[key: string]: any}

constructor (app: FabrixApp, config) {
super(app)
if (!(app instanceof EventEmitter)) {
throw new Error('The "app" argument must be of type EventEmitter')
}
this._app = app
this._config = config
this.app.emit(`generic:${this.id}:constructed`, this)
}
Expand All @@ -27,12 +25,6 @@ export class Generic extends FabrixGeneric {
}
}

// @enumerable(false)
// @writable(false)
get app(): FabrixApp {
return this._app
}

/**
* Return a reference to the Fabrix logger
*/
Expand Down
Loading

0 comments on commit f127e78

Please sign in to comment.