Fixed deregistration of events

Events registered in the afterInit function (mousewheel, mousedown, ...)
aren't deregistered properly as the namespace is only used for 
deregistering on the window object.