Skip to main content

Search and Top Navigation

#9266 closed bug (notabug)

Opened May 01, 2013 12:13AM UTC

Closed May 01, 2013 12:38AM UTC

_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

Attachments (0)
Change History (1)

Changed May 01, 2013 12:38AM UTC by scottgonzalez comment:1

component: ui.coreui.widget
resolution: → notabug
status: newclosed

Don't do that.