Skip to content

Commit 2153687

Browse files
fix incorrect function reference that was stopping the reset buttons from working
1 parent a1c0e92 commit 2153687

8 files changed

+8
-8
lines changed

flexbox/basics/align-items.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
reset.addEventListener('click', function () {
127127
textareaHTML.value = htmlCode;
128128
textareaCSS.value = cssCode;
129-
fillSection();
129+
fillCode();
130130
});
131131

132132
textareaHTML.addEventListener('input', fillCode);

flexbox/basics/flex-direction.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
reset.addEventListener('click', function () {
118118
textareaHTML.value = htmlCode;
119119
textareaCSS.value = cssCode;
120-
fillSection();
120+
fillCode();
121121
});
122122

123123
textareaHTML.addEventListener('input', fillCode);

flexbox/basics/flex-flow.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
reset.addEventListener('click', function () {
118118
textareaHTML.value = htmlCode;
119119
textareaCSS.value = cssCode;
120-
fillSection();
120+
fillCode();
121121
});
122122

123123
textareaHTML.addEventListener('input', fillCode);

flexbox/basics/flex-properties.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
reset.addEventListener('click', function () {
116116
textareaHTML.value = htmlCode;
117117
textareaCSS.value = cssCode;
118-
fillSection();
118+
fillCode();
119119
});
120120

121121
textareaHTML.addEventListener('input', fillCode);

flexbox/basics/flex-shorthands.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
reset.addEventListener('click', function () {
125125
textareaHTML.value = htmlCode;
126126
textareaCSS.value = cssCode;
127-
fillSection();
127+
fillCode();
128128
});
129129

130130
textareaHTML.addEventListener('input', fillCode);

flexbox/basics/flex-wrap.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
reset.addEventListener('click', function () {
119119
textareaHTML.value = htmlCode;
120120
textareaCSS.value = cssCode;
121-
fillSection();
121+
fillCode();
122122
});
123123

124124
textareaHTML.addEventListener('input', fillCode);

flexbox/basics/justify-content.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
reset.addEventListener('click', function () {
118118
textareaHTML.value = htmlCode;
119119
textareaCSS.value = cssCode;
120-
fillSection();
120+
fillCode();
121121
});
122122

123123
textareaHTML.addEventListener('input', fillCode);

flexbox/basics/the-flex-container.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
reset.addEventListener('click', function () {
125125
textareaHTML.value = htmlCode;
126126
textareaCSS.value = cssCode;
127-
fillSection();
127+
fillCode();
128128
});
129129

130130
textareaHTML.addEventListener('input', fillCode);

0 commit comments

Comments
 (0)