added .events, still tihnking about propper event propagation...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-05-20 13:53:54 +03:00
parent d793b03134
commit 6bc4c2fb94

View File

@ -1767,8 +1767,6 @@ var BaseBrowserPrototype = {
.render(options) },
// XXX should these be moved to the HTML class...
// Events...
//
// Format:
@ -1961,6 +1959,18 @@ var BaseBrowserPrototype = {
return this
},
// List events...
// XXX avoid expensive props...
get events(){
var that = this
return Object.deepKeys(this)
.map(function(key){
return (key != 'events'
&& that[key] instanceof Function
&& that[key].event) ?
that[key].event
: [] })
.flat() },
// domain events/actions...
// XXX need a way to extend these to: