Skip to main content

Bug Tracker

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 Morgan comment:1

The patch check if key is an object, if so it sets data for each key/val pair.

Changed May 16, 2008 03:15AM UTC by flesler comment:2

type: bugenhancement

Changed September 14, 2009 07:30PM UTC by flesler comment:3

cc: → scott.gonzalez
component: coredata
milestone: 1.2.41.3.3
need: ReviewPatch
owner: → flesler
status: newassigned

Changed June 18, 2010 01:12AM UTC by dmethvin comment:4

resolution: → fixed
status: assignedclosed

As of 1.4, .data() accepts a hash.