app/assets/javascripts/models/active_page.coffee in kindred-0.0.4 vs app/assets/javascripts/models/active_page.coffee in kindred-0.0.5

- old
+ new

@@ -35,9 +35,13 @@ $("[data-target][data-target-uuid='" + @target_uuid + "']").append($template) error_tag = $("[data-error][data-k-uuid='" + @uuid + "']") error_tag.hide() + remove_from_page: -> + $("[data-wrapper][data-k-uuid='" + @uuid + "']").remove() + $("[data-kindred-model]").find("div[data-k-uuid='" + @uuid + "']").remove() + update_vals_on_page: -> $.each @attributes, (attr, val) => $("[data-k-uuid='" + @uuid + "'][data-attr='" + attr + "']").val(val) update_displays_on_page: ->