Opened 7 years ago

Closed 7 years ago

#14733 closed bug (notabug)

Extended widget selector (:namespace-widgetname) does not work as expected

Reported by: xoffshore Owned by:
Priority: minor Milestone: none
Component: ui.widget Version: 1.11.4
Keywords: Cc:
Blocked by: Blocking:

Description

Well, I'm not sure this is a bug.

I'm not able to check for parent widget instance on the element which running extended widget.

Like this:

$.widget('wdg.testBase', {});
$.widget('wdg.testExtended', $.wdg.testBase, {});

And then:

$('<div>').testExtended().is(':wdg-testBase') -> false, whereas true expected

JSBin sample: http://jsbin.com/loregavufo/edit

Related ticket: http://bugs.jqueryui.com/ticket/4266

Change History (1)

comment:1 Changed 7 years ago by Scott González

Resolution: notabug
Status: newclosed

That's expected behavior. This is more like typeof than instanceof.

Note: See TracTickets for help on using tickets.