aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes/attr.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/attributes/attr.js')
-rw-r--r--src/attributes/attr.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/attributes/attr.js b/src/attributes/attr.js
index 170e6a39e..e47bde2f3 100644
--- a/src/attributes/attr.js
+++ b/src/attributes/attr.js
@@ -2,9 +2,9 @@ define([
"../core",
"../var/rnotwhite",
"../var/strundefined",
- "../selector",
- "../support"
-], function( jQuery, rnotwhite, strundefined ) {
+ "./support",
+ "../selector"
+], function( jQuery, rnotwhite, strundefined, support ) {
var nodeHook, boolHook,
attrHandle = jQuery.expr.attrHandle;
@@ -93,7 +93,8 @@ jQuery.extend({
attrHooks: {
type: {
set: function( elem, value ) {
- if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
+ if ( !support.radioValue && value === "radio" &&
+ jQuery.nodeName( elem, "input" ) ) {
// Setting the type on a radio button after the value resets the value in IE6-9
// Reset value to default in case type is set after value during creation
var val = elem.value;