From 1624f5a9b3ffe1d167d5cb6d6b9ea6c1a1d654cd Mon Sep 17 00:00:00 2001 From: dodo Date: Sun, 15 Jan 2012 04:50:32 +0100 Subject: [PATCH] code highlight event lists for better readability --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5af1a25..51b3814 100644 --- a/README.md +++ b/README.md @@ -352,7 +352,9 @@ 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). @@ -360,7 +362,9 @@ 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).