bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-06-06 17:16:36 +03:00
parent ff8050a62a
commit 65988fa5c4
2 changed files with 2 additions and 6 deletions

View File

@ -184,10 +184,8 @@ requirejs([
// XXX this does not appear to survive attaching an item // XXX this does not appear to survive attaching an item
// to the document... // to the document...
open: function(e){ open: function(e){
// XXX this does not work, likely because we are
// losing this event object at some point...
e.preventDefault() e.preventDefault()
console.log('!!!!!!!!!!!!') }, console.log('test: open: default prevented...') },
//cls: ['heading'], //cls: ['heading'],
}) })
}, { }, {

View File

@ -409,7 +409,7 @@ function(event, handler, action, default_item, filter, options){
// item chain to create it's own new event object... // item chain to create it's own new event object...
// this will isolate each chain from the others in // this will isolate each chain from the others in
// state and handling propagation... // state and handling propagation...
callItemEventHandlers(item, event, null, ...args) }) }, callItemEventHandlers(item, event, evt, ...args) }) },
...(action ? [action] : []), ...(action ? [action] : []),
false) false)
return Object.assign( return Object.assign(
@ -2630,8 +2630,6 @@ var BaseBrowserPrototype = {
open: makeItemEventMethod('open', open: makeItemEventMethod('open',
function(evt, item){}, function(evt, item){},
// XXX not yet sure if this is correct... // XXX not yet sure if this is correct...
// XXX BUG: evt.preventDefault() does not affect this for some reason...
// ...i.e. evt here and in the user cycle are not the same...
function(evt, item){ function(evt, item){
item.length > 0 item.length > 0
&& this.toggleCollapse(item) }, && this.toggleCollapse(item) },