2 * @class jQuery.plugin.getAttrs
6 * Get the attributes of an element directy as a plain object.
8 * If there is more than one element in the collection, similar to most other jQuery getter methods,
9 * this will use the first element in the collection.
13 jQuery
.fn
.getAttrs = function () {
15 map
= this[0].attributes
,
19 for ( i
= 0; i
< len
; i
++ ) {
20 attrs
[ map
[i
].nodeName
] = map
[i
].nodeValue
;
28 * @mixins jQuery.plugin.getAttrs