X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fattributes.js;h=4fa49b914169a90af85fa579867ed8ed32c80690;hb=77e310b906112c9e20dfbf0e91249a0b81cf6107;hp=719c368af9f14e168d735a7ede4f3683a23d80fa;hpb=cb40495b21bcb7802f3ab6ae0f837f2bf5b385ed;p=jquery.git diff --git a/src/attributes.js b/src/attributes.js index 719c368..4fa49b9 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -1,3 +1,5 @@ +(function( jQuery ) { + var rclass = /[\n\t]/g, rspace = /\s+/, rreturn = /\r/g, @@ -339,9 +341,7 @@ jQuery.extend({ // Non-existent attributes return null, we normalize to undefined return attr === null ? undefined : attr; } - - // elem is actually elem.style ... set the style - // Using attr for specific style information is now deprecated. Use style instead. - return jQuery.style( elem, name, value ); } }); + +})( jQuery );