Skip to main content

Search and Top Navigation

#5148 closed bug (fixed)

Opened February 08, 2010 01:09AM UTC

Closed February 08, 2010 02:14AM UTC

Button docs say there is a click callback

Reported by: vmx Owned by:
Priority: major Milestone: 1.8
Component: ui.button Version: 1.8rc1
Keywords: Cc:
Blocked by: Blocking:

The button docs bundled with 1.8rc1 [1] define a click event. You should be able to set it as an option. The example uses:

   click: function(event, ui) { ... }

This doesn't work work for me. But I can bind a function to the click event with bind() as follows:

$('.selector').bind('click', function(event, ui) { ... });

Two test cases are attached. Though I'm not sure if they belong to the events or to the options tests.

Are the wiki docs keep in sync with the bundled docs? In the wiki the click event is missing [2].



Attachments (1)
Change History (1)

Changed February 08, 2010 02:14AM UTC by scottgonzalez comment:1

resolution: → fixed
status: newclosed
summary: Button click option doesn't workButton docs say there is a click callback

This was a mistake in the docs that has been fixed. There are no custom callbacks/events for the button plugin.