diff options
author | Alex Sexton <AlexSexton@gmail.com> | 2010-10-25 02:31:19 -0500 |
---|---|---|
committer | Alex Sexton <AlexSexton@gmail.com> | 2010-10-25 02:31:19 -0500 |
commit | 086822e6419c89c33b322bacbbc891148a4b3647 (patch) | |
tree | 2fa3b9b95840c7fc18d7896650fabd89933f49bc | |
parent | 9bd9ebdd73fe0e2d29fadf82947c98adde4023e7 (diff) | |
download | jquery-086822e6419c89c33b322bacbbc891148a4b3647.tar.gz jquery-086822e6419c89c33b322bacbbc891148a4b3647.zip |
Moved jQuery.props to attributes since it was only used in support. Fixes #6897 - suggestion by dmethvin
-rw-r--r-- | src/attributes.js | 13 | ||||
-rw-r--r-- | src/support.js | 14 |
2 files changed, 13 insertions, 14 deletions
diff --git a/src/attributes.js b/src/attributes.js index 147c353f4..4393a9fdb 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -9,6 +9,19 @@ var rclass = /[\n\t]/g, rclickable = /^a(?:rea)?$/i, rradiocheck = /^(?:radio|checkbox)$/i; +jQuery.props = { + "for": "htmlFor", + "class": "className", + readonly: "readOnly", + maxlength: "maxLength", + cellspacing: "cellSpacing", + rowspan: "rowSpan", + colspan: "colSpan", + tabindex: "tabIndex", + usemap: "useMap", + frameborder: "frameBorder" +}; + jQuery.fn.extend({ attr: function( name, value ) { return jQuery.access( this, name, value, true, jQuery.attr ); diff --git a/src/support.js b/src/support.js index b9c10c7a2..67b41c4a7 100644 --- a/src/support.js +++ b/src/support.js @@ -193,18 +193,4 @@ // release memory in IE root = script = div = all = a = null; })(); - -jQuery.props = { - "for": "htmlFor", - "class": "className", - readonly: "readOnly", - maxlength: "maxLength", - cellspacing: "cellSpacing", - rowspan: "rowSpan", - colspan: "colSpan", - tabindex: "tabIndex", - usemap: "useMap", - frameborder: "frameBorder" -}; - })( jQuery ); |