/*! jQuery All Attributes - v0.2.0 - 2014-04-30
* https://github.com/ngs/jquery-allAttributes
* Copyright (c) 2014 Atsushi Nagase; Licensed MIT */
(function(){!function(a){"use strict";var b,c;return b=function(a){var b,c,d,e,f,g,h,i,j;if(d={},!(c=a.attributes))return d;for(i=0,j=c.length;j>i;i++){for(b=c[i],f=b.name.split("-"),h=b.value,g=d,/^(\d[\d\.]*)$/.test(h)?h=parseFloat(h):/^(true|false)$/.test(h)&&(h="true"===h);f.length>1;)e=f.shift(),/^(number|string|boolean)$/.test(typeof g[e])&&(g[e]={_:g[e]}),g[e]||(g[e]={}),g=g[e];e=f[0],"object"==typeof g[e]?g[e]._=h:g[e]=h}return d},c=a.fn.attr,a.fn.attr=function(){return arguments.length?c.apply(this,arguments):this[0]?b(this[0]):void 0},this}(jQuery)}).call(this);