#795: allow View::listen to be a function
Merge pull request #799 from jeron-diovis/view-listen-fn

#795: allow View::listen to be a function