Closed
Description
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
Labels
No labels