mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
added .events, still tihnking about propper event propagation...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d793b03134
commit
6bc4c2fb94
@ -1767,8 +1767,6 @@ var BaseBrowserPrototype = {
|
|||||||
.render(options) },
|
.render(options) },
|
||||||
|
|
||||||
|
|
||||||
// XXX should these be moved to the HTML class...
|
|
||||||
|
|
||||||
// Events...
|
// Events...
|
||||||
//
|
//
|
||||||
// Format:
|
// Format:
|
||||||
@ -1961,6 +1959,18 @@ var BaseBrowserPrototype = {
|
|||||||
return this
|
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...
|
// domain events/actions...
|
||||||
// XXX need a way to extend these to:
|
// XXX need a way to extend these to:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user