Skip to content

Document safe way to access the information of an element with a widget bound to it #77

Closed
@FagnerMartinsBrack

Description

@FagnerMartinsBrack

As discussed on http://bugs.jqueryui.com/ticket/8908, element.is( ":data(namespace-widget)" ) should be documented as a safe way to detect if a widget is being used in a given element.

Suggestion 1: It can be written under "Additional Notes" of each component like "Detect if the widget is active on the element: $( ".selector" ).is( ":data(namespace-widget)" )"

Suggestion 2: It can be written along with the destroy() method in Code examples: like:

Code Examples:
Detect if the widget is active on the element:
$( ".selector" ).is( ":data(namespace-widget)" );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions