Permalink
Browse files

edited readme

  • Loading branch information...
1 parent cb4d5f3 commit 4d2148478a380387983d6f0d3ee5c794ce98605b @greim committed Aug 5, 2010
Showing with 20 additions and 3 deletions.
  1. +20 −3 README.markdown
View
23 README.markdown
@@ -24,7 +24,7 @@ root of the document.
### Event Delegation
- <div> <-- handler attached here
+ <div> <-- meta-handler attached here
|
+--<a>
|
@@ -34,7 +34,7 @@ root of the document.
### Root-Level Event Delegation
- <html> <-- handler attached here
+ <html> <-- meta-handler attached here
|
+--<body>
|
@@ -57,6 +57,23 @@ on the page, over the lifetime of the page. This has a number of benefits:
## Reglib Feature Hilights
+### Simple, Declarative API
+
+ REGLIB.click('a.popup', function(e){
+ window.open(this.href);
+ return false;
+ });
+
+This statement acts as a declaration that remains in effect for the lifetime of
+the page, even if popup links are continually being added and removed, just as
+this:
+
+ a.popup {
+ color:green;
+ }
+
+...remains in effect for the lifetime of the page.
+
### RegExp-Like Selectors
Reglib's DOM selectors behave less like SQL queries and more like regular
@@ -84,7 +101,7 @@ natural way to initialize useful variables:
// alternatively, actual matched element can be referenced as 'this'
});
-### MouseEnter/MouseLeave and FocusEnter/FocusLeave
+### Mouse Enter/Leave and Focus Enter/Leave Behavior
Reglib fires mouseover, mouseout, focus and blur handlers only at times that are
interesting and useful to your program. For example, if you handle mouseover

0 comments on commit 4d21484

Please sign in to comment.