mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3624e63743
commit
c84a56d3a6
@ -444,12 +444,12 @@ function(event, action, {handler, default_item, filter, options, update=true}={}
|
|||||||
var that = this
|
var that = this
|
||||||
var change = false
|
var change = false
|
||||||
items.forEach(function(item){
|
items.forEach(function(item){
|
||||||
change = action(item)
|
change = action(item) !== false
|
||||||
handler
|
handler
|
||||||
&& handler.call(that, item) })
|
&& handler.call(that, item) })
|
||||||
// need to update for changes to show up...
|
// need to update for changes to show up...
|
||||||
change
|
update
|
||||||
&& update
|
&& change
|
||||||
&& this.update() },
|
&& this.update() },
|
||||||
default_item:
|
default_item:
|
||||||
default_item
|
default_item
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user