Skip to main content

Bug Tracker

Side navigation

#3749 closed feature (invalid)

Opened December 25, 2008 07:35PM UTC

Closed January 03, 2009 12:57AM UTC

Preserve children when deleting elements

Reported by: kkaefer Owned by: flesler
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc: kkaefer
Blocked by: Blocking:
Description

It is sometimes necessary to preserve the children of an element and just delete the element itself (e.g. when you wrap/wrapInner an element and want to get rid of the wrapper). This patch adds a removeThis() function to jQuery.

Attachments (2)
  • jquery-removethis.patch (0.4 KB) - added by kkaefer December 25, 2008 07:36PM UTC.

    better code style

  • preservechildren.patch (0.7 KB) - added by kkaefer December 25, 2008 07:41PM UTC.

    alternative patch that extends the .remove() function instead of adding another function

Change History (1)

Changed January 03, 2009 12:57AM UTC by flesler comment:1

cc: → kkaefer
component: unfilledcore
resolution: → invalid
status: newclosed

You can do that manually when needed. Is not a commonly needed feature/addition.