Skip to content

seagullua/sigs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Sigs - Signals and Slots for JavaScript

Simple signals and slots system inspired from Qt.

npm install sigs

Quick Example

var Signal = require('sigs');

//Create event
var onSomeEvent = new Signal();

//Connect some functions to event
onSomeEvent.connect(function(data){
	console.log("Data: ", data);
});

//Connect by function name
onSomeEvent.connect(console.log);


onSomeEvent.emit("HELLO");

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published