Events not delegated when rendering a single view

When rendering a single managed view, events defined in the `events` object on the view are not delegated correctly after render. Attached is a unit test describing this and a fix.

In addition, my text editor has eagerly stripped a couple of trailing whitespaces on some of the comments, which you will notice in the second commit!