Open budarin opened 9 years ago
Hi @budarin,
I think it can be useful, added to development scope.
Like temporary workaround you can use next code:
$('#el').trigger($.Event('eventType', {
key: 'value'
}));
jQuery have the same interfaces, this code is 100% compatible.
Full support for constructions like $("#foo").trigger( "custom", [ "Custom", "Event" ] );
will be implemented a little bit later.
Hi Alex!
Hi @budarin,
$("#foo").trigger( "custom", [ "Custom", "Event" ] );
it's what you want? Or you need something other?
should I always put second parameter as array or as object too?
Is there any update? Would be great to have the following functionality:
$('#foo').trigger( 'custom', {'custom': 'object'});
It's still not implemented, but I think I will improve it during the week.
Event.trigger needs to send an optional parameters like jQuery's Events do