minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-06-15 19:12:45 +03:00
parent 3624e63743
commit c84a56d3a6

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