Skip to content

A submodule used in Vasern developemtn for event subscriber/emitter

Notifications You must be signed in to change notification settings

vasern/sm-subscriber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Event Subscriber

A simple event subscriber/emitter, used for many Vasern libraries.

Usage

import EventSubscriber from './EventSubscriber';

var ev = new EventSubscriber();

ev.subscribe('change', (change: any) => {
    console.log('change fired', change);
});

ev.fire('change', { message: 'Okkkk' });

About

A submodule used in Vasern developemtn for event subscriber/emitter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published