optional `fn` in view() as `construct` listener
compact if statement
Merge pull request #3 from stagas/construct-listener

optional `fn` in view() as `construct` listener