diff --git a/chapters/jquery/callback-bindings-jquery.md b/chapters/jquery/callback-bindings-jquery.md index 7d36bea..a89ffc7 100644 --- a/chapters/jquery/callback-bindings-jquery.md +++ b/chapters/jquery/callback-bindings-jquery.md @@ -16,7 +16,7 @@ $ -> @products = [] $('.product').click (event) => - @add $(event.target).attr 'id' + @add $(event.currentTarget).attr 'id' add: (product) -> @products.push product