Merge branch 'master' of github.com:flynx/ImageGrid

This commit is contained in:
Alex A. Naanou 2019-06-16 02:55:33 +03:00
commit 5d35ae1fb0

View File

@ -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