Skip to main content

Bug Tracker

Side navigation

#3346 closed enhancement (worksforme)

Opened September 09, 2008 04:29PM UTC

Closed December 13, 2010 02:52AM UTC

empty and remove methods are too aggressive with event removal

Reported by: mike.helgeson Owned by: flesler
Priority: minor Milestone: 1.3
Component: core Version: 1.2.6
Keywords: empty remove Cc: mike.helgeson
Blocked by: Blocking:

When these methods were modified to remove events, I found that a lot of code was broken. I am submitting a patch to have an additional argument to each of these methods to preserve events. API similar to "clone(true)"... the new calls are "remove(false)" and "remove(selector,false)" and "empty(false)" The "false" argument means DO NOT remove these events.

Attachments (1)
Change History (3)

Changed September 09, 2008 05:08PM UTC by flesler comment:1

cc: → mike.helgeson
need: ReviewPatch
owner: → flesler
status: newassigned

Changed February 23, 2009 04:16PM UTC by mpaineau comment:2

I think that this enhancement is very important.

Why not to include it in the 1.3.3 Milestone ?


Changed December 13, 2010 02:52AM UTC by snover comment:3

resolution: → worksforme
status: assignedclosed

Use $.fn.detach.