Skip to content

Commit 4945af5

Browse files
committed
Slightly simplify some code in Chapter 19
1 parent d8503d9 commit 4945af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

19_paint.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ controls.openURL = function(cx) {
567567
elt("button", {type: "submit"}, "load"));
568568
form.addEventListener("submit", function(event) {
569569
event.preventDefault();
570-
loadImageURL(cx, form.querySelector("input").value);
570+
loadImageURL(cx, input.value);
571571
});
572572
return form;
573573
};

0 commit comments

Comments
 (0)