function render() { var entities = getEntities() pools.each(itself('.begin()')) entities.each(function(entity) { var column = entity.note.column var y = metrics.noteY(entity.position, entity) var pool = pools[column] if (entity.finish) { var yy = metrics.noteY(entity.finish, entity) pool.use({ id: $id(entity), y: y, height: y - yy }) } else { pool.use({ id: $id(entity), y: y, height: 0 }) } }) pools.each(itself('.commit()')) }
theme.update = function() { bindings.forEach(itself('()')) }