Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johnny-shaman/data_flow_event_driven_development

data_flow_event_driven_development
https://github.com/johnny-shaman/data_flow_event_driven_development

Last synced: 20 days ago
JSON representation

data_flow_event_driven_development

Awesome Lists containing this project

README

        

# data_flow_event_driven_development
data_flow_event_driven_development

## Usage

~~~javascript
class MyTarget extends EventDriver {
constructor () {
super();
this.foo = "foo";
this.bar = "bar";
this.baz = "baz";
this.target = document.getElementById("myButton");
this
.drive("click", "sayFoo")
.on("click", false);
}
sayFoo (e) {
alert(this.foo);
this.drive("click", "sayBar");
}
sayBar (e) {
alert(this.bar);
this.drive("click", "sayBaz");
}
sayBaz (e) {
alert(this.baz);
this.free("click");
}
click (e) {
alert("Once More!");
this.drive("click", "sayFoo");
}
}
~~~