Opened 5 years ago

Closed 5 years ago

#9266 closed bug (notabug)

_off _on chaining not working.

Reported by: jwa107 Owned by:
Priority: minor Milestone: none
Component: ui.widget Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:

Description

In normal Jquery (not using UI) you can write the following code:

$("#test").off("click").on("click", function() {});

And have it work (source)

When I try to do this inside of a widget, like so:

this._off( $("li", this.sloshLeft), "dblclick")._on( $("li", this.sloshLeft), {

dblclick: function(event) { }

});

I get the following error:

Uncaught TypeError: Cannot call method '_on' of undefined

Change History (1)

comment:1 Changed 5 years ago by Scott González

Component: ui.coreui.widget
Resolution: notabug
Status: newclosed

Don't do that.

Note: See TracTickets for help on using tickets.