Bug Tracker

Modify

Ticket #2519 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

[UI] namespacing (events and data)

Reported by: scott.gonzalez Owned by: scott.gonzalez
Priority: critical Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: Cc:
Blocking: Blocked by:

Description

All UI plugins should store their instances as:

$(el).data('<plugin>');

not:

$(el).data('ui-<plugin>');

All bound events, including setData and getData should be in the "<plugin>" namespace, not "ui-<plugin>".

The only place "ui-<plugin>" will be used is in CSS to prevent collisions with common class names.

Change History

comment:1 Changed 6 years ago by scott.gonzal

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [4966].

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.