Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Handling clicks in jQuery UI Widget
_create: function () {
...
this._on(this.elTitle, {
click: "_titleClick" // Note: function name must be passed as a string!
});
},
_titleClick: function (event) {
console.log(this); // 'this' is now the widget instance.
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment