This commit is contained in:
Scott González 2011-03-21 09:47:29 -04:00
commit 52fd686f08

View File

@ -186,17 +186,13 @@ $.widget( "ui.button", {
if ( this.element.is(":checkbox") ) {
this.type = "checkbox";
} else {
if ( this.element.is(":radio") ) {
} else if ( this.element.is(":radio") ) {
this.type = "radio";
} else {
if ( this.element.is("input") ) {
} else if ( this.element.is("input") ) {
this.type = "input";
} else {
this.type = "button";
}
}
}
if ( this.type === "checkbox" || this.type === "radio" ) {
// we don't search against the document in case the element