If no listener is supplied, trigger the event instead.

Yeah, I was missing jQuery.