@@ -174,7 +174,7 @@ Using an object literal for a jQuery feature
174
174
</div >
175
175
176
176
The first thing you'll notice is that this approach is obviously far longer
177
- than the original — again, if this were the extent of our application, using an
177
+ than the original -- again, if this were the extent of our application, using an
178
178
object literal would likely be overkill. Assuming it's not the extent of our
179
179
application, though, we've gained several things:
180
180
@@ -188,10 +188,10 @@ application, though, we've gained several things:
188
188
refactor, remix, and rearrange.
189
189
190
190
For non-trivial features, object literals are a clear improvement over a long
191
- stretch of code stuffed in a $(document).ready() block, as they get us thinking
192
- about the pieces of our functionality. However, they aren't a whole lot more
193
- advanced than simply having a bunch of function declarations inside of that
194
- $(document).ready() block.
191
+ stretch of code stuffed in a ` $(document).ready() ` block, as they get us
192
+ thinking about the pieces of our functionality. However, they aren't a whole
193
+ lot more advanced than simply having a bunch of function declarations inside of
194
+ that ` $(document).ready() ` block.
195
195
196
196
### The Module Pattern
197
197
0 commit comments