According to the jquery manual:
.triggerHandler( eventType [, extraParameters ] )
where extraParameters is an array
If I have passed only one parameters ok but if I try to pass multiples parameters not work. Only first parameter of array is available
$('#test')
.off('test_event')
.on('test_event',function(event,parameters){
console.log(parameters); // return 1 not array
})
.click(function(){
$(this).triggerHandler('test_event',[1,2,3,4]);
})
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<button id = "test">
test
</button>