window.S = window.S || {}
;(($, window, document) =>
{
'use strict'
S.MyHandler = XF.Event.newHandler({
eventType: 'keyup',
eventNameSpace: 'SMyHandler',
options: {
// any data-whatever-options you need
},
init ()
{
// your initializer -- target can be accessed via this.$target
// (you can omit this method)
},
keyup (e)
{
// your event handler
}
})
XF.Event.register('keyup', 's-my-handler', 'S.MyHandler')
}(jQuery, window, document)