There is no documentation on the function, but the usage is pretty simple:
Code:
core.microhandlers.add(
'Your unique handler name',
'jQuery selector',
function (event) {
// Your function goes there
}
);
Use it in your .js files loaded through the
getJSFiles() method.
Every time X-Cart 5 loads a page or inserts an AJAX result into the page it looks through added jQuery selectors and runs handler functions configured for matching microhandlers.