mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ff8050a62a
commit
65988fa5c4
@ -184,10 +184,8 @@ requirejs([
|
||||
// XXX this does not appear to survive attaching an item
|
||||
// to the document...
|
||||
open: function(e){
|
||||
// XXX this does not work, likely because we are
|
||||
// losing this event object at some point...
|
||||
e.preventDefault()
|
||||
console.log('!!!!!!!!!!!!') },
|
||||
console.log('test: open: default prevented...') },
|
||||
//cls: ['heading'],
|
||||
})
|
||||
}, {
|
||||
|
||||
@ -409,7 +409,7 @@ function(event, handler, action, default_item, filter, options){
|
||||
// item chain to create it's own new event object...
|
||||
// this will isolate each chain from the others in
|
||||
// state and handling propagation...
|
||||
callItemEventHandlers(item, event, null, ...args) }) },
|
||||
callItemEventHandlers(item, event, evt, ...args) }) },
|
||||
...(action ? [action] : []),
|
||||
false)
|
||||
return Object.assign(
|
||||
@ -2630,8 +2630,6 @@ var BaseBrowserPrototype = {
|
||||
open: makeItemEventMethod('open',
|
||||
function(evt, item){},
|
||||
// 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){
|
||||
item.length > 0
|
||||
&& this.toggleCollapse(item) },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user