Skip to content

Commit

Permalink
code highlight event lists for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
dodo committed Jan 15, 2012
1 parent f074183 commit 1624f5a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -352,15 +352,19 @@ Most events travel up the XML tree, some can be only received on their parents.

### global

['add', 'attr', 'attr:remove', 'text', 'raw', 'data', 'show', 'hide', 'remove', 'replace', 'close']
```javascript
['add', 'attr', 'attr:remove', 'text', 'raw', 'data', 'show', 'hide', 'remove', 'replace', 'close']
````
These events can be received from every single tag.

When you listen on a *specific tag* you get these events from the tag you are listening on and from all the children tags (recursive).
When you listen on a *builder instance* you get all events from all tags.

### local

['new', 'end']
```javascript
['new', 'end']
```
These events can be received from every single tag.

When you listen for `new` on a *specific tag* you get 'new' events from only the tag you are listening on and from all its direct children (only 1 level deep).
Expand Down

0 comments on commit 1624f5a

Please sign in to comment.