diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-07-09 21:38:11 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-07-09 21:39:22 -0400 |
commit | 8f01b92b8fd85a66f2cba671f8b9ff6f7095c34b (patch) | |
tree | 6120b02292d65f3ac1248a7c82aae5fbbb505d7d /src/attributes.js | |
parent | f30f7732e7775b6e417c4c22ced7adb2bf76bf89 (diff) | |
download | jquery-8f01b92b8fd85a66f2cba671f8b9ff6f7095c34b.tar.gz jquery-8f01b92b8fd85a66f2cba671f8b9ff6f7095c34b.zip |
Follow the style guide, lose 72 bytes! Closes gh-840.
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/attributes.js b/src/attributes.js index d7ad3156a..9fc93679d 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -1,11 +1,11 @@ -var rclass = /[\n\t\r]/g, +var nodeHook, boolHook, fixSpecified, + rclass = /[\n\t\r]/g, rreturn = /\r/g, rtype = /^(?:button|input)$/i, rfocusable = /^(?:button|input|object|select|textarea)$/i, rclickable = /^a(?:rea)?$/i, rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, - getSetAttribute = jQuery.support.getSetAttribute, - nodeHook, boolHook, fixSpecified; + getSetAttribute = jQuery.support.getSetAttribute; jQuery.fn.extend({ attr: function( name, value ) { @@ -179,7 +179,8 @@ jQuery.fn.extend({ isFunction = jQuery.isFunction( value ); return this.each(function( i ) { - var self = jQuery(this), val; + var val, + self = jQuery(this); if ( this.nodeType !== 1 ) { return; |