diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
commit | c9aa36da061816dee256a979c2ff8d2ee41824d9 (patch) | |
tree | 29f7002b80ee984b488bd047dbbd80b36bf892e9 /resources/jquery/jquery.getAttrs.js | |
parent | b4274e0e33eafb5e9ead9d949ebf031a9fb8363b (diff) | |
parent | d1ba966140d7a60cd5ae4e8667ceb27c1a138592 (diff) |
Merge branch 'archwiki'
# Conflicts:
# skins/ArchLinux.php
# skins/ArchLinux/archlogo.gif
Diffstat (limited to 'resources/jquery/jquery.getAttrs.js')
-rw-r--r-- | resources/jquery/jquery.getAttrs.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/resources/jquery/jquery.getAttrs.js b/resources/jquery/jquery.getAttrs.js deleted file mode 100644 index 25b806b6..00000000 --- a/resources/jquery/jquery.getAttrs.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Utility to get all attributes of an element directy as an object. - * - * @author Timo Tijhof, 2011 - */ -jQuery.fn.getAttrs = function ( all ) { - var map = this[0].attributes, - attrs = {}, - len = map.length, - i, v; - - for ( i = 0; i < len; i++ ) { - // IE6 includes *all* allowed attributes for thew element (including those - // not set). Those have values like undefined, null, 0, false, "" or "inherit". - // However there may be genuine attributes set to that. If you need them, - // set all to true. They are excluded by default. - v = map[i].nodeValue; - if ( all || ( v && v !== 'inherit' ) ) { - attrs[ map[i].nodeName ] = v; - } - } - - return attrs; -}; |