Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/johnny-shaman/data_flow_event_driven_development
- Owner: johnny-shaman
- License: mit
- Created: 2019-04-25T01:23:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-25T03:01:40.000Z (almost 6 years ago)
- Last Synced: 2024-12-22T08:08:27.697Z (about 2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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");
}
}
~~~