From ff0b31a87d759ef4bde3dd424923afa44fdfda64 Mon Sep 17 00:00:00 2001 From: Jeff Cooper Date: Thu, 11 Sep 2014 23:57:12 -0400 Subject: [PATCH 1/2] Update triggering-event-handlers.md Simple grammar edit. --- page/events/triggering-event-handlers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page/events/triggering-event-handlers.md b/page/events/triggering-event-handlers.md index b4a55a0b..648eec89 100644 --- a/page/events/triggering-event-handlers.md +++ b/page/events/triggering-event-handlers.md @@ -75,5 +75,5 @@ $( "p" ).on( "click", foo ); foo(); // instead of $( "p" ).trigger( "click" ) ``` -A more complex architecture can built on top of trigger using the [publish-subscribe pattern](http://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern) using [jQuery plugins](https://gist.github.com/661855). +A more complex architecture can be built on top of trigger using the [publish-subscribe pattern](http://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern) using [jQuery plugins](https://gist.github.com/661855). With this technique, `.trigger()` can be used to notify other sections of code that an application specific event has happened. From 826812856af0cbe803c19e1ec59cfa97ac1d8797 Mon Sep 17 00:00:00 2001 From: Jeff Cooper Date: Wed, 17 Sep 2014 12:16:51 -0400 Subject: [PATCH 2/2] Update feature-browser-detection.md Grammar fix --- page/code-organization/feature-browser-detection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page/code-organization/feature-browser-detection.md b/page/code-organization/feature-browser-detection.md index 67d7040d..5b29f511 100644 --- a/page/code-organization/feature-browser-detection.md +++ b/page/code-organization/feature-browser-detection.md @@ -104,7 +104,7 @@ That's it. Easy. So, while the Modernizr syntax is great, it can end up being quite cumbersome to have several conditionals. Secondly, we're sending the code for both conditions to every browser, regardless if we'll need it or not. -The `Modernizr` object exposes a `load()` method that many prefer over the syntax mentioned previously. This is due to the another library that Modernizr now uses internally: [yepnope](http://yepnopejs.com/). Testing for canvas can now become something like this: +The `Modernizr` object exposes a `load()` method that many prefer over the syntax mentioned previously. This is due to another library that Modernizr now uses internally: [yepnope](http://yepnopejs.com/). Testing for canvas can now become something like this: ``` Modernizr.load({