0.0.6 • Published 6 years ago

track-eventor v0.0.6

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

TrackEventor

Event manager for track.

Build Status

Installation

npm

npm install track-eventor

Usage

const TrackEventor      = require('track-eventor');
const TrackEventManager = require('track-eventor/lib/manager');

TrackEventManager.initialize();

// Dispatch event.
TrackEventor.dispatch('hoge', {foo: 'bar'});

// Get event names.
TrackEventor.ON_PUSH_HISTORY;   // Dispatch when history push.
TrackEventor.ON_POP_HISTORY;    // Dispatch when history pop.
TrackEventor.ON_CHANGE_HISTORY; // Dispatch when history pop or history push.
0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago