Skip to main content

Bug Tracker

Side navigation

#2411 closed enhancement (invalid)

Opened February 26, 2008 10:28AM UTC

Closed December 02, 2010 08:07AM UTC

$.removeData could return the data

Reported by: klaus Owned by: klaus
Priority: minor Milestone: 1.2.4
Component: data Version: 1.2.3
Keywords: data Cc:
Blocked by: Blocking:
Description

It would be handy if $.removeData would return the data that is being removed.

Instead of

var data = $.data(el, 'data');
$.removeData(el, 'data');

it seems more intuitive (and less to type) to have:

var data = $.removeData(el, 'data');
Attachments (1)
  • removeData.diff (0.7 KB) - added by flesler March 19, 2008 01:02AM UTC.

    These are the necessary changes

Change History (3)

Changed June 20, 2010 05:44PM UTC by dmethvin comment:1

component: coredata

Changed November 01, 2010 08:48PM UTC by rwaldron comment:2

owner: → klaus
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a jsFiddle that outlines practical use cases for your enhancement request.

Additionally, test against the jQuery 0 GIT version to ensure the issue still exists. Be Excellent to eachother!

Changed December 02, 2010 08:07AM UTC by trac-o-bot comment:3

resolution: → invalid
status: pendingclosed

Automatically closed due to 14 days of inactivity.