i need to register an additional handler to element
#submitStep1Form via a plugin that has already a handler registered to it.
Currently when i call
$('#submitStep1Form').pkpHandler('... the console spits out the exception
The handler ... has already been bound to the selected element. This is caused by
Handler.js because it allows only one handler binding, see https://github.com/pkp/pkp-lib/blob/master/js/classes/Handler.js#L82.
I reworked the code by simply storing the handler bindings via an array in
data('pkp.handlers') and rewriting all code parts based on the data stored basically by iterating over the array. This seems to work without breaking existing functionality.
Would this be a change you are willing to include in the GitHub repo?