Skip to main content

Bug Tracker

Side navigation

#9792 closed bug (duplicate)

Opened July 10, 2011 05:34PM UTC

Closed July 10, 2011 09:13PM UTC

Last modified July 11, 2011 09:19AM UTC

data() not saved when using '0' as data and hypernated key

Reported by: radhike123@yahoo.com Owned by:
Priority: low Milestone: 1.next
Component: data Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:
Description

When data is set using $(selector).data('test-data',0), undefined is returned when using $(selector).data('test-data');

Example: -> http://jsfiddle.net/Xmqnf/

This does not occur in jQuery 1.6.1

Attachments (0)
Change History (5)

Changed July 10, 2011 09:13PM UTC by rwaldron comment:1

component: unfileddata
priority: undecidedlow
resolution: → duplicate
status: newclosed

Changed July 10, 2011 09:13PM UTC by rwaldron comment:2

Duplicate of #9301.

Changed July 11, 2011 03:41AM UTC by radhike123@yahoo.com comment:3

Hi, rwaldron, are you sure this is fixed? This behavior is only integer 0 in concern.

See this for example: -> http://jsfiddle.net/PeZad/1/

work perfectly in 1.6.2 and 1.6.1

Changed July 11, 2011 04:52AM UTC by rwaldron comment:4

There was a larger concern, that I opened a new ticket for: http://bugs.jquery.com/ticket/9794

Changed July 11, 2011 09:19AM UTC by radhike123@yahoo.com comment:5

ok, I'll be following the new ticket then...

Thanks..