Opened 9 years ago
Closed 9 years ago
#9761 closed bug (notabug)
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 _create
method 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.element
everything works.
Change History (2)
comment:2 Changed 9 years ago by
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.
Note: See
TracTickets for help on using
tickets.
Seems that someone else is having this problem too http://forum.jquery.com/topic/to-extend-or-wrap#14737000000967254