aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-05-21 12:47:15 -0400
committerScott González <scott.gonzalez@gmail.com>2012-05-21 12:47:15 -0400
commite6f21410ff4e2e88ed5f44c872451e8030898178 (patch)
treefaf2eafd3157e97dfec041ace150da2cb68d0c2f /ui
parent9ac52deaa271d3162e3d24724faf03f0b92ba3df (diff)
downloadjquery-ui-e6f21410ff4e2e88ed5f44c872451e8030898178.tar.gz
jquery-ui-e6f21410ff4e2e88ed5f44c872451e8030898178.zip
Don't use :checkbox selector.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.button.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index bd0af9408..44dbc68db 100644
--- a/ui/jquery.ui.button.js
+++ b/ui/jquery.ui.button.js
@@ -214,7 +214,7 @@ $.widget( "ui.button", {
_determineButtonType: function() {
var ancestor, labelSelector, checked;
- if ( this.element.is(":checkbox") ) {
+ if ( this.element.is("[type=checkbox]") ) {
this.type = "checkbox";
} else if ( this.element.is("[type=radio]") ) {
this.type = "radio";
@@ -358,7 +358,7 @@ $.ui.button.version = "@VERSION";
$.widget( "ui.buttonset", {
options: {
- items: ":button, :submit, :reset, :checkbox, [type=radio], a, :data(button)"
+ items: ":button, :submit, :reset, [type=checkbox], [type=radio], a, :data(button)"
},
_create: function() {