Browse files

Merge pull request #66 from pwhisenhunt/1.5.2

Fixing typo.
  • Loading branch information...
2 parents 5104bb8 + fc3767a commit f8da704d84f18a2241bc1a8b853b25ae48ec9800 @addyosmani committed Dec 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 book/index.html
View
2 book/index.html
@@ -4519,7 +4519,7 @@ <h1 id="detailflyweight">
As the types of components mentioned often have the same repeating markup for each section (e.g. each section of an accordion), there's a good chance the behavior of each element that may be clicked is going to be quite similar and relative to similar classes nearby. We'll use this information to construct a very basic accordion using the Flyweight below.
</p>
<p>
-A stateManager namespace is used here encapsulate our flyweight logic whilst jQuery is used to bind the initial click to a container div. In order to ensure that no other logic on the page is attaching similar handles to the container, an unbind event is first applied.
+A stateManager namespace is used here to encapsulate our flyweight logic whilst jQuery is used to bind the initial click to a container div. In order to ensure that no other logic on the page is attaching similar handles to the container, an unbind event is first applied.
</p>
<p>
Now to establish exactly what child element in the container is clicked, we make use of a <code>target</code> check which provides a reference to the element that was clicked, regardless of its parent. We then use this information to handle the click event without actually needing to bind the event to specific children when our page loads.

0 comments on commit f8da704

Please sign in to comment.