Skip to content

Commit e3e3cc1

Browse files
committed
[resources] add section for further reading, closures. fixes airbnb#64
1 parent 3cea9f5 commit e3e3cc1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@
11921192
## <a name='events'>Events</a>
11931193
11941194
- When attaching data payloads to events (whether DOM events or something more proprietary like Backbone events), pass a hash instead of a raw value. This allows a subsequent contributor to add more data to the event payload without finding and updating every handler for the event. For example, instead of:
1195-
1195+
11961196
```js
11971197
// bad
11981198
$(this).trigger('listingUpdated', listing.id);
@@ -1205,7 +1205,7 @@
12051205
```
12061206
12071207
prefer:
1208-
1208+
12091209
```js
12101210
// good
12111211
$(this).trigger('listingUpdated', { listingId : listing.id });
@@ -1368,6 +1368,10 @@
13681368
- [Naming this in nested functions](https://gist.github.com/4135065) - Christian Johansen
13691369
- [Conditional Callbacks](https://github.com/airbnb/javascript/issues/52)
13701370

1371+
**Further Reading**
1372+
1373+
- [Understanding JavaScript Closures](http://javascriptweblog.wordpress.com/2010/10/25/understanding-javascript-closures/) - Angus Croll
1374+
13711375
**Books**
13721376

13731377
- [JavaScript: The Good Parts](http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742) - Douglas Crockford

0 commit comments

Comments
 (0)