I have the following function call:
$(\".selector\").on(\"click\", callback.bind(this, param1, param2));
Inside my callback function I would li
when this in your callback belongs to the scope of callback bind not the scope of the event.
this might work but I am not sure i understand what you are trying to do
$(".selector").on("click", function(event){
callback.bind(event.type, param1, param2)
});
this points to the dom element your event occured while the event already has the type which you want to pass to the 2nd bind (2nd because in theory your .on() is a bind as well)