qooxdoo/qooxdoo — pull request #13 by johnspackman (2012-02-12 14:28:44+00:00)
Title: qx.event.Manager - add registerHandler

Event handlers are developed as individual modules and registered with qx.event.Manager but because qx.event.Manager calls the constructor of each event handler they cannot be replaced with any implementation other than the default.

This is an unfortunate restriction which prevents event handlers from being customised, something which is essential when dealing with multiple document instances (eg drag and drop between iframe and the main document), or when subtle extensions are required in the application.

This change adds a registerHandler method that allows the app to provide it's own handlers; the change will not impact existing code.