#9792 closed bug (duplicate)
data() not saved when using '0' as data and hypernated key
Reported by: | 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
Change History (5)
comment:1 Changed 10 years ago by
Component: | unfiled → data |
---|---|
Priority: | undecided → low |
Resolution: | → duplicate |
Status: | new → closed |
comment:2 Changed 10 years ago by
comment:3 Changed 10 years ago by
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
comment:4 Changed 10 years ago by
There was a larger concern, that I opened a new ticket for: http://bugs.jquery.com/ticket/9794
Note: See
TracTickets for help on using
tickets.
Duplicate of #9301.