0.0.5 • Published 8 years ago

mediator-module v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

mediator-module NPM version Build Status Dependency Status Coverage percentage

mediator module

Install

$ npm install --save mediator-module

Usage

var MediatorModule = require('mediator-module');

class FirstMediatorModule extends MediatorModule {
  constructor () {
    super();
    this.mediator.subscribe('test', this.aTestFunction);
  }

  *aTestFunction () {
    console.log('a func called');
  }
}

class SecondMediatorModule extends MediatorModule {
  constructor () {
    super();
  }

  testPublish () {
    this.mediator.publish('test');
  }
}

License

MIT © PAIO co.,ltd.

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago