Search and Top Navigation
#7810 closed bug (fixed)
Opened October 25, 2011 01:00PM UTC
Closed March 01, 2012 02:22PM UTC
Consistent naming convention for .data() keys
Reported by: | scottgonzalez | Owned by: | jzaefferer |
---|---|---|---|
Priority: | blocker | Milestone: | 1.9.0 |
Component: | [meta] ui.dev | Version: | 1.8.16 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
There's a lot of variation in naming conventions for data stored on elements. We should formalize a naming convention and use it everywhere.
Attachments (0)
Change History (4)
Changed October 25, 2011 01:01PM UTC by comment:1
priority: | minor → blocker |
---|---|
status: | new → open |
Changed February 28, 2012 10:03PM UTC by comment:2
owner: | → joern.zaefferer |
---|---|
status: | open → assigned |
Started this in the data-naming branch.
Changed March 01, 2012 12:43PM UTC by comment:3
https://github.com/jquery/jquery-ui/pull/607 addresses a good chunk of this.
Remaining: Widget, interactions and datepicker.
Widget currently sets data based on the widget's name. Changing that needs a BC layer.
Interactions rely a lot on other interactions, accessing them via data attributes. Haven't yet looked in detail if those are problematic.
Datepicker's usage is very similar to wiget. Looks like it just sets a datepicker property, nothing else.
Changed March 01, 2012 02:22PM UTC by comment:4
resolution: | → fixed |
---|---|
status: | assigned → closed |
We'll ignore datepicker and interactions for now, as those are being rewritten. Everything else is addressed.