Skip to content

Commit b8631d1

Browse files
committed
update readme with listener info
1 parent 4eb0927 commit b8631d1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ It allows you to quickly move from basic BS into crazy advanced DOM manipulation
5353

5454
---
5555

56+
### Sample Code
57+
Have a solid look through the code included in this repo. It gives a 1000ft overview of basic jQuery functionality.
58+
5659
### Event Delegation
5760
Event delegation refers to the process of using event propagation (bubbling) to handle events at a higher level in the DOM than the element on which the event originated. It allows us to attach a single event listener for elements that exist now or in the future.
5861

@@ -72,6 +75,8 @@ var delegatedEventListener = function(){
7275

7376
```
7477

78+
**Translation** - Make this your DEFAULT pattern. Using this pattern for building event listeners allows you on listen to DOM elements which will be dynamically placed on the page after the initial load.
79+
7580
### The DOM:
7681

7782
DOM === Document Object Model
@@ -86,11 +91,11 @@ jQuery DOM features include:
8691
- AJAX
8792
- Various utilities
8893

89-
#### AJAX:
94+
### AJAX:
9095

9196
Specifically for AJAX, jQuery has its own flavor of AJAX which happens to be the flavor we teach @DBC. Being good with jQuery selectors is 3/4 of the battle when writing your jQuery flavored AJAX. The AJAX pattern itself is fairly simple. The selection and manipulation of DOM elements using jQuery around an AJAX call is the tricky bit.
9297

93-
#### ProTip:
98+
### ProTip:
9499
Chrome defines ```$()``` as well. This is not jQuery. Always be sure you have **_actually_** loaded jQuery into your project. If you can select an element with $ but cannot run various jQuery methods on it this is most likely the culprit (Laugh now... Its happened to better Devs than you friend ;-)
95100

96101
__From this point forward your Chrome Dev Tools should never be closed.__

0 commit comments

Comments
 (0)