Skip to main content

Search and Top Navigation

#5898 closed bug (worksforme)

Opened August 04, 2010 03:20PM UTC

Closed August 04, 2010 03:32PM UTC

Last modified October 11, 2012 09:15PM UTC

$('button').button("enable") re-creates the button

Reported by: plaflamme Owned by:
Priority: minor Milestone:
Component: ui.button Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:
Description

Calling "enable" after a "disable" will re-create the spans inside the <button> element.

To reproduce, browse to the button demo (here) and issue this JS repeatedly:

$('div.demo button').button('disable').button('enable')

You will notice that the <button> element will have a new <span> child added on every call.

Attachments (0)
Change History (3)

Changed August 04, 2010 03:32PM UTC by rdworth comment:1

resolution: → worksforme
status: newclosed

While what you describe is true in terms of the button re-creating the span, I'm pretty sure what you've found is a bug in Firebug, if that's where you're seeing multiple spans. But there's only one span, you can see by

alert( $('div.demo button').find('span').length )

Changed August 10, 2010 01:51PM UTC by plaflamme comment:2

Indeed I was seeing this in firebug.

thanks!

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:3

milestone: TBD

Milestone TBD deleted