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
Note: See
TracTickets for help on using
tickets.
That's expected behavior. This is more like
typeof
thaninstanceof
.