From 063ec7a0bb2bcdd88b7133edbdc20f6af0be8bac Mon Sep 17 00:00:00 2001 From: Matthieu Aussaguel Date: Thu, 27 Oct 2011 13:59:18 +1100 Subject: [PATCH] Select currentTarget instead of the target --- chapters/jquery/callback-bindings-jquery.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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