small fix on $.trigger

add support for the third argument when it is not array