-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Noboru Okazaki edited this page Aug 27, 2017
·
10 revisions
- long long property name...
- What a spagetti code it is!
object.property.method(object.property.property).property(object.property)(object.property.property.pro...) - OOP ? But ! this isn't this !!!
- promise ? generator ? It's Juicy ?
- Where is myself ? Who is me ?
- Understand ! -- "this" is a bad! -- "new" is a bad! -- "OOP" is a bad...
let MyButton = function () {
this
._({
Alice: "Who are you ?",
CheshireCat: "I not interested about you."
})
._(button.$("Push Me"))
.on("click");
}._({
click (e) {
this.each((v, k) => e.$.outer.$(p.$(k + ": " + v)));
this.off("click");
}
});
$.body.$(article.$(new MyButton()));
Let's happy hacking!