Side navigation
#2768 closed enhancement (fixed)
Opened May 01, 2008 04:47PM UTC
Closed June 18, 2010 01:12AM UTC
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 (4)
Changed May 14, 2008 05:20AM UTC by comment:1
Changed May 16, 2008 03:15AM UTC by comment:2
type: | bug → enhancement |
---|
Changed September 14, 2009 07:30PM UTC by comment:3
cc: | → scott.gonzalez |
---|---|
component: | core → data |
milestone: | 1.2.4 → 1.3.3 |
need: | Review → Patch |
owner: | → flesler |
status: | new → assigned |
Changed June 18, 2010 01:12AM UTC by comment:4
resolution: | → fixed |
---|---|
status: | assigned → closed |
As of 1.4, .data() accepts a hash.
The patch check if key is an object, if so it sets data for each key/val pair.