Skip to content
Permalink
Browse files

Merge branch 'master' of https://github.com/thg2k/jquery-ui

  • Loading branch information...
scottgonzalez committed Mar 21, 2011
2 parents bc08ffa + 3ce8429 commit 52fd686f08d9ff1fab8b7fd92384e33bc26465da
Showing with 7 additions and 11 deletions.
  1. +7 −11 ui/jquery.ui.button.js
@@ -183,21 +183,17 @@ $.widget( "ui.button", {
},

_determineButtonType: function() {

if ( this.element.is(":checkbox") ) {
this.type = "checkbox";
} else if ( this.element.is(":radio") ) {
this.type = "radio";
} else if ( this.element.is("input") ) {
this.type = "input";
} else {
if ( this.element.is(":radio") ) {
this.type = "radio";
} else {
if ( this.element.is("input") ) {
this.type = "input";
} else {
this.type = "button";
}
}
this.type = "button";
}

if ( this.type === "checkbox" || this.type === "radio" ) {
// we don't search against the document in case the element
// is disconnected from the DOM

0 comments on commit 52fd686

Please sign in to comment.
You can’t perform that action at this time.