Create a generic function that parses the array of types given in vjs.on, vjs.one or vjs.off and creates a call for each type in the array