sigs
v1.2.0
Published
Easy signals and slots for JavaScript
Downloads
2
Readme
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");