diff --git a/page/code-organization/deferreds/examples.md b/page/code-organization/deferreds/examples.md index d4b74e38..aff95b1e 100644 --- a/page/code-organization/deferreds/examples.md +++ b/page/code-organization/deferreds/examples.md @@ -284,7 +284,7 @@ $( "#myButton" ).firstClick(function() { panel.find( "img" ).each(function() { var image = $( this ), - src = element.attr( "data-src" ); + src = image.attr( "data-src" ); if ( src ) { promises.push( $.loadImage( src ).then(function() {