Search and Top Navigation
#9761 closed bug (notabug)
Opened January 21, 2014 10:03PM UTC
Closed January 21, 2014 10:57PM UTC
Can't bind on events in a plugin that extends sortable
Reported by: | NiGhTTraX | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.sortable | Version: | 1.10.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I'm trying to build a plugin that extends sortable and in the
_createmethod of my plugin I'm calling
_super(). After that I try to bind on some sort events, but it doesn't seem to work, my handlers don't get triggered.
See this for more details http://jsfiddle.net/NiGhTTraX/ArT7M/
If instead of calling
_super()I manually create the sortable on
that.elementeverything works.
Attachments (0)
Change History (2)
Changed January 21, 2014 10:07PM UTC by comment:1
_comment0: | Seems that someone else is having this problem http://forum.jquery.com/topic/to-extend-or-wrap#14737000000967254 → 1390342058363084 |
---|
Changed January 21, 2014 10:57PM UTC by comment:2
resolution: | → notabug |
---|---|
status: | new → closed |
That's because the widget instance is not a sortable instance, it's a myplugin instance. There is no polymorphism in the widget factory.
Seems that someone else is having this problem too http://forum.jquery.com/topic/to-extend-or-wrap#14737000000967254