hey guys i was just going through the Jquery doc's and basically came across the following peice of code :
jQuery.event.special.pushy = {
bindType: "click",
delegateType: "click"
};
the doc's has the following explanation for bindType
and delegateType
,
When defined, these string properties specify that a special event should be handled like another event type until the event is delivered. The bindType is used if the event is attached directly, and the delegateType is used for delegated events. These types are generally DOM event types, and should not be a special event themselves.
now i don't understand the following :
The bindType is used if the event is attached directly, and the delegateType is used for delegated events.
what is attached directly
and delegated events
??
Thank you .
Alex-z