From e3e3cc1a4e246c720fc8305d80fa6504d4a69584 Mon Sep 17 00:00:00 2001 From: Harrison Shoff Date: Tue, 2 Jul 2013 10:34:21 -0700 Subject: [PATCH] [resources] add section for further reading, closures. fixes #64 --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d0a0f2f8..6b2691d6 100644 --- a/README.md +++ b/README.md @@ -1192,7 +1192,7 @@ ## Events - 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: - + ```js // bad $(this).trigger('listingUpdated', listing.id); @@ -1205,7 +1205,7 @@ ``` prefer: - + ```js // good $(this).trigger('listingUpdated', { listingId : listing.id }); @@ -1368,6 +1368,10 @@ - [Naming this in nested functions](https://gist.github.com/4135065) - Christian Johansen - [Conditional Callbacks](https://github.com/airbnb/javascript/issues/52) +**Further Reading** + + - [Understanding JavaScript Closures](http://javascriptweblog.wordpress.com/2010/10/25/understanding-javascript-closures/) - Angus Croll + **Books** - [JavaScript: The Good Parts](http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742) - Douglas Crockford