cycling jQuery_Succinctly | Page 74

Notes: There is no limit to the depth or number of namespaces used— e.g. resize.layout.headerFooterContent. Namespacing is a great way of protecting, invoking, removing any exclusive handlers that a plugin may require. Namespacing works with custom events as well as standard events—e.g. click.unique or myclick.unique. Grokking event delegation Event delegation relies on event propagation (a.k.a. bubbling). When you click an inside of a
  • , which is inside of a