diff --git a/jquery.nested_attributes.coffee b/jquery.nested_attributes.coffee index f3d11cf..5ec69d7 100644 --- a/jquery.nested_attributes.coffee +++ b/jquery.nested_attributes.coffee @@ -256,7 +256,7 @@ class NestedAttributes $item.append($destroyField) $destroyField.val(true).change() - @options.afterDestroy.call($item, index, itemIsNew) if (@options.afterDestroy) + @options.afterDestroy.call($item, $item, index, itemIsNew) if (@options.afterDestroy) # Remove this item from the items list @refreshItems()