Skip to content

Commit

Permalink
edited readme
Browse files Browse the repository at this point in the history
  • Loading branch information
greim committed Aug 5, 2010
1 parent f5aa8cd commit 6fb62f4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.markdown
Expand Up @@ -16,35 +16,35 @@ the document.

<div>
|
+--<a> <-- handler bound here, listens for clicks
+--<a class="foo"> <-- handler bound here, listens for clicks
|
+--<a> <-- handler bound here, listens for clicks
+--<a class="foo"> <-- handler bound here, listens for clicks
|
+--<a> <-- handler bound here, listens for clicks
+--<a class="foo"> <-- handler bound here, listens for clicks

### Event Delegation

<div> <-- meta-handler bound here, listens for clicks originating from <a>
<div> <-- meta-handler bound here, listens for clicks originating from a.foo
|
+--<a>
+--<a class="foo">
|
+--<a>
+--<a class="foo">
|
+--<a>
+--<a class="foo">

### Root-Level Event Delegation

<html> <-- meta-handler bound here, listens for clicks originating from
| elements matching an entry in look-up table of selectors
| elements matching an entry in table of selectors
+--<body>
|
+--<div>
|
+--<a>
+--<a class="foo">
|
+--<a>
+--<a class="foo">
|
+--<a>
+--<a class="foo">

*Root-level* event delegation is when this meta-handler is bound to the ultimate
ancestor node—the root—effectively giving it visibility to all events on the
Expand Down

0 comments on commit 6fb62f4

Please sign in to comment.