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)
Change History (3)
Changed June 20, 2010 05:44PM UTC by comment:1
| component: | core → data |
|---|
Changed November 01, 2010 08:48PM UTC by comment:2
| owner: | → klaus |
|---|---|
| status: | new → pending |
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 comment:3
| resolution: | → invalid |
|---|---|
| status: | pending → closed |
Automatically closed due to 14 days of inactivity.