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 change = false
items.forEach(function(item){
change = action(item)
change = action(item) !== false
handler
&& handler.call(that, item) })
// need to update for changes to show up...
change
&& update
update
&& change
&& this.update() },
default_item:
default_item