Skip to content

Commit 12ec51b

Browse files
committed
lowercasing 'e' in 'element' in function args
1 parent 3947369 commit 12ec51b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

page/using-jquery-core/iterating.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Given the following markup:
115115
we can write:
116116

117117
```
118-
$('li').each( function(index, Element){
118+
$('li').each( function(index, element){
119119
120120
console.log( $(this).text() );
121121
@@ -261,7 +261,7 @@ $('li').each( function() {
261261
We can do this:
262262

263263
```
264-
$('li').map( function(index, Element) {
264+
$('li').map( function(index, element) {
265265
266266
return this.id;
267267
@@ -297,9 +297,9 @@ var arr = [{
297297
}];
298298
299299
300-
$('li').map( function(index, Element) {
300+
$('li').map( function(index, element) {
301301
302-
return Element.id;
302+
return element.id;
303303
304304
}).get(); // returns ["a", "b", "c"]
305305

0 commit comments

Comments
 (0)