Side navigation
#10031 closed bug (invalid)
Opened August 11, 2011 09:22PM UTC
Closed September 06, 2011 07:48AM UTC
.data() passing an object causes errors whereas passing each piece individually works perfectly
Reported by: | stuart little | Owned by: | stuart little |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | data | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hopefully this bug has not already been reported as I did do a search for it. I'm using a mac on OSX10.7 on Chrome 13.0.782.112 using jQuery 1.4.2
Here is my issue, I'm passing an object inside .data in many places throughout my application and it works beautifully. However when I'm about to close a dialog box I want to set some data. (I'm noting this as I did read that some plugins access .data() as well).
While setting the data with
$('.currentlyClicked').data({
'boxColor':redact.preChangesObject.boxColor,
'borderColor':redact.preChangesObject.borderColor,
'fontSize':redact.preChangesObject.fontSize,
'fontColor':redact.preChangesObject.fontColor
});
I get multiple console errors referring to an unknown mousedown and click event.
However when I fill the data out like below:
$('.currentlyClicked').data('boxColor',redact.preChangesObject.boxColor);
$('.currentlyClicked').data('borderColor',redact.preChangesObject.borderColor);
$('.currentlyClicked').data('fontSize',redact.preChangesObject.fontSize);
$('.currentlyClicked').data('fontColor',redact.preChangesObject.fontColor);
everything works just fine
Attachments (0)
Change History (4)
Changed August 11, 2011 11:56PM UTC by comment:1
component: | unfiled → data |
---|---|
owner: | → stuart little |
priority: | undecided → low |
status: | new → pending |
Changed August 11, 2011 11:56PM UTC by comment:2
milestone: | None → 1.6.3 |
---|
Changed August 22, 2011 04:06PM UTC by comment:3
milestone: | 1.6.3 → 1.next |
---|
Changed September 06, 2011 07:48AM UTC by comment:4
resolution: | → invalid |
---|---|
status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/
Open the link and click to "Fork" (in the top menu) to get started.