Opened 15 years ago
Closed 12 years ago
#2411 closed enhancement (invalid)
$.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 (4)
Changed 15 years ago by
Attachment: | removeData.diff added |
---|
comment:1 Changed 13 years ago by
Component: | core → data |
---|
comment:2 Changed 12 years ago by
Owner: | set to 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!
comment:3 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Automatically closed due to 14 days of inactivity.
Note: See
TracTickets for help on using
tickets.
These are the necessary changes