extend() now returns the prototype of the sub-constructor
Fixed minor bug in InputHandlerBase.js that caused an exception when detaching listeners