Skip to main content

Bug Tracker

Side navigation

#10016 closed bug (duplicate)

Opened August 10, 2011 07:52PM UTC

Closed August 10, 2011 08:14PM UTC

Last modified March 09, 2012 12:35AM UTC

Cannot retrieve "false-y" values under key names with dashes using method

Reported by: Owned by:
Priority: blocker Milestone: 1.6.3
Component: data Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

The latest version of jQuery does not properly store a value such as 0 with the $.data method.

Example:, "test-a", 0); //Will now get retrieved as undefined., "testb", 0); //Works, "test-c", 1); //Works

This appears to work correctly under jQuery 1.5.2 and 1.6.1. The problem affects use of jsTree, which is where it was discovered.


Attachments (0)
Change History (3)

Changed August 10, 2011 08:14PM UTC by rwaldron comment:1

component: unfileddata
milestone: None1.6.3
priority: undecidedblocker
resolution: → duplicate
status: newclosed

Please review here:


After searching for existing tickets, please use the instructions in How to Report Bugs to fill out the bug reporting form below. Don't forget to link to a working test case, preferably on jsFiddle!

Changed August 10, 2011 08:14PM UTC by rwaldron comment:2

Duplicate of #9917.

Changed August 27, 2011 08:11PM UTC by dmethvin comment:3

#10144 is a duplicate of this ticket.