Skip to content

Commit d60d5e6

Browse files
committed
tiny
1 parent ab9af90 commit d60d5e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

chapter_16_javascript.asciidoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ AssertionError: True is not false
159159
And we can commit this as the first cut of our FT.
160160

161161

162-
=== A Quick Spike of a solution
162+
=== A Quick Spike of a Solution
163163

164164
This will be our first bit of JavaScript.
165165
We're also interacting with the Bootstrap CSS framework,
@@ -179,7 +179,8 @@ The goat doesn't mind looking the other way for a bit.
179179

180180
This kind of prototyping activity is often called a "spike",
181181
for http://stackoverflow.com/questions/249969/why-are-tdd-spikes-called-spikes[
182-
reasons that aren't entirely clear].
182+
reasons that aren't entirely clear],
183+
but it's a nice memorable name.
183184

184185

185186
==== A Simple Inline Script
@@ -209,6 +210,7 @@ at the bottom of our _base.html_ template:
209210
<1> `document.querySelector` is a way of finding an element in the DOM,
210211
using CSS selector syntax, very much like the Selenium
211212
`find_element(By.CSS_SELECTOR)` method from our FTs.
213+
Grizzled readers may remember having to use jQuery's `$` function for this.
212214

213215
<2> `oninput` is how you attach an event listener "callback" function,
214216
which will be called whenever the user inputs something into the text box.

0 commit comments

Comments
 (0)