Opened 15 years ago
Closed 13 years ago
#2768 closed enhancement (fixed)
data should accept a hash
Reported by: | scottgonzalez | Owned by: | flesler |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | data | Version: | 1.2.3 |
Keywords: | Cc: | scottgonzalez | |
Blocked by: | Blocking: |
Description
data should support
$(el).data({ key1: val1, key2: val2 });
as an equivalent of:
$(el).data('key1', 'val1').data('key2', 'val2');
Attachments (1)
Change History (5)
Changed 15 years ago by
Attachment: | 2768-data_from_hash.diff added |
---|
comment:1 Changed 15 years ago by
The patch check if key is an object, if so it sets data for each key/val pair.
comment:2 Changed 15 years ago by
Type: | bug → enhancement |
---|
comment:3 Changed 14 years ago by
Cc: | scott.gonzalez added |
---|---|
Component: | core → data |
Milestone: | 1.2.4 → 1.3.3 |
need: | Review → Patch |
Owner: | set to flesler |
Status: | new → assigned |
comment:4 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
As of 1.4, .data() accepts a hash.
Note: See
TracTickets for help on using
tickets.
add data from hash