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.
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