If a view constructor receives a function as its options argument, run it.