* @type jQuery
* @param String type An event type
*/
- trigger: function( type ) {
- jQuery.event.trigger( this, type );
+ trigger: function( type, data ) {
+ jQuery.event.trigger( type, data, this );
}
};
find: function( t, context ) {
// Make sure that the context is a DOM Element
- if ( context && context.getElementsByTagName == undefined )
+ if ( context && context.nodeType == undefined )
context = null;
// Set the correct context (if none is provided)