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:


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

If instead of calling _super() I manually create the sortable on that.element everything works.

Change History (2)

comment:1 Changed 9 years ago by NiGhTTraX

Seems that someone else is having this problem too

Last edited 9 years ago by NiGhTTraX (previous) (diff)

comment:2 Changed 9 years ago by Scott González

Resolution: notabug
Status: newclosed

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.