Search and Top Navigation
#14733 closed bug (notabug)
Opened October 19, 2015 10:53AM UTC
Closed October 19, 2015 02:06PM UTC
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
Attachments (0)
Change History (1)
Changed October 19, 2015 02:06PM UTC by comment:1
| resolution: | → notabug |
|---|---|
| status: | new → closed |
That's expected behavior. This is more like
typeofthaninstanceof.