From e0a50f8924d553e9ba0453698074b7c1b0c2abd9 Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Tue, 21 Oct 2014 11:11:18 -0400 Subject: [PATCH] Build for 1.1.0 --- dist/a11y-state.min.js | 2 +- dist/a11y-state.min.js.map | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/a11y-state.min.js b/dist/a11y-state.min.js index faef42d..3691c67 100644 --- a/dist/a11y-state.min.js +++ b/dist/a11y-state.min.js @@ -1,2 +1,2 @@ -!function(){null===window.a11y&&(window.a11y={})}(),function(e,t,i){"use strict";function a(){var e=this;this.states={busy:{used:!0,value:[!0,!1]},checked:{used:["option"],value:[!0,!1,"mixed",void 0]},disabled:{used:!0,value:[!0,!1]},expanded:{used:["button","document","link","section","sectionhead","separator","window"],value:[!0,!1,void 0]},grabbed:{used:!0,value:[!0,!1,void 0]},hidden:{used:!0,value:[!0,!1]},invalid:{used:!0,value:[!0,!1,"grammar","spelling"]},pressed:{used:["button"],value:[!0,!1,"mixed",void 0]},selected:{used:["gridcell","option","row","tab"],value:[!0,!1,void 0]}},this.validate={state:function(t,i){return-1===Object.keys(e.states).indexOf(t)?(i!==!0&&console.log("`"+t+"` is not a valid ARIA state"),!1):!0},value:function(t,i,a){var n;return e.validate.state(t)?(n=e.states[t].value,-1===n.indexOf(i)?(a!==!0&&console.log("`"+i+"` is not a valid value for `aria-"+t+"`"),!1):!0):!1}},this.get=function(e,t){return e.getAttribute("aria-"+t)},this.has=function(t,i){var a=e.get(t,i);return null===a?!1:a===!1||"false"===a?!1:!0},this.set=function(t,i,a){void 0===a?a=!0:e.validate.value(i,a)||(a=null),null!==a&&t.setAttribute("aria-"+i,a)},this.toggle=function(t,i){var a=e.get(t,i);null===a||"false"===a?e.set(t,i,!0):"true"===a?e.set(t,i,!1):console.log("Cannot toggle `aria-"+i+"` as it's starting value is not a boolean (it's `"+a+"`)")},this.remove=function(t,i){e.validate.value(i,void 0,!0)?t.removeAttribute("aria-"+i):t.setAttribute("aria-"+i,!1)}}e=e||{},e.state=new a,"undefined"!=typeof t&&t.exports?t.exports=e:"function"==typeof i&&i.amd?i(function(){return e}):window.a11y=e}(window.a11y,window.module,window.define); +!function(){null===window.a11y&&(window.a11y={})}(),function(e,t,i){"use strict";function n(){var e=this;this.suppressWarnings=!1,this.states={busy:{used:!0,value:[!0,!1]},checked:{used:["option"],value:[!0,!1,"mixed",void 0]},disabled:{used:!0,value:[!0,!1]},expanded:{used:["button","document","link","section","sectionhead","separator","window"],value:[!0,!1,void 0]},grabbed:{used:!0,value:[!0,!1,void 0]},hidden:{used:!0,value:[!0,!1]},invalid:{used:!0,value:[!0,!1,"grammar","spelling"]},pressed:{used:["button"],value:[!0,!1,"mixed",void 0]},selected:{used:["gridcell","option","row","tab"],value:[!0,!1,void 0]}},this.validate={state:function(t,i){return-1===Object.keys(e.states).indexOf(t)?(i===!0||e.suppressWarnings||console.error("`"+t+"` is not a valid ARIA state"),!1):!0},value:function(t,i,n){var a;return e.validate.state(t)?(a=e.states[t].value,-1===a.indexOf(i)?(n===!0||e.suppressWarnings||console.error("`"+i+"` is not a valid value for `aria-"+t+"`"),!1):!0):!1}},this.get=function(e,t){return e.getAttribute("aria-"+t)},this.has=function(t,i){var n=e.get(t,i);return null===n?!1:n===!1||"false"===n?!1:!0},this.set=function(t,i,n){void 0===n?n=!0:e.validate.value(i,n)||(n=null),null!==n&&t.setAttribute("aria-"+i,n)},this.toggle=function(t,i){var n=e.get(t,i);null===n||"false"===n?e.set(t,i,!0):"true"===n?e.set(t,i,!1):e.suppressWarnings||console.info("Cannot toggle `aria-"+i+"` as it's starting value is not a boolean (it's `"+n+"`)")},this.remove=function(t,i){e.validate.value(i,void 0,!0)?t.removeAttribute("aria-"+i):t.setAttribute("aria-"+i,!1)}}e=e||{},e.state=new n,"undefined"!=typeof t&&t.exports?t.exports=e:"function"==typeof i&&i.amd?i(function(){return e}):window.a11y=e}(window.a11y,window.module,window.define); //# sourceMappingURL=a11y-state.min.js.map \ No newline at end of file diff --git a/dist/a11y-state.min.js.map b/dist/a11y-state.min.js.map index eae23d9..3e5325c 100755 --- a/dist/a11y-state.min.js.map +++ b/dist/a11y-state.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["?"],"names":["window","a11y","module","define","A11yState","self","this","states","busy","used","value","checked","undefined","disabled","expanded","grabbed","hidden","invalid","pressed","selected","validate","state","suppress","Object","keys","indexOf","console","log","val","get","el","attr","getAttribute","has","set","setAttribute","toggle","current","remove","removeAttribute","exports","amd"],"mappings":"CAIA,WACsB,OAAhBA,OAAOC,OACTD,OAAOC,YAKX,SAAWA,EAAMC,EAAQC,GACvB,YAEA,SAASC,KACP,GAAIC,GAAOC,IAKXA,MAAKC,QACHC,MACCC,MAAQ,EACRC,QACE,GACA,IAGHC,SACCF,MAAS,UACTC,QACE,GACA,EACA,QACAE,SAGHC,UACEJ,MAAQ,EACRC,QACE,GACA,IAGJI,UACEL,MACE,SACA,WACA,OACA,UACA,cACA,YACA,UAEFC,QACE,GACA,EACAE,SAGJG,SACEN,MAAQ,EACRC,QACE,GACA,EACAE,SAGJI,QACEP,MAAQ,EACRC,QACE,GACA,IAGJO,SACER,MAAQ,EACRC,QACE,GACA,EACA,UACA,aAGJQ,SACET,MAAS,UACTC,QACE,GACA,EACA,QACAE,SAGJO,UACEV,MACE,WACA,SACA,MACA,OAEFC,QACE,GACA,EACAE,UAQNN,KAAKc,UACHC,MAAO,SAAUA,EAAOC,GACtB,MAAgD,KAA5CC,OAAOC,KAAKnB,EAAKE,QAAQkB,QAAQJ,IAC/BC,KAAa,GACfI,QAAQC,IAAI,IAAMN,EAAQ,gCAGrB,IAGA,GAGXX,MAAO,SAAUW,EAAOX,EAAOY,GAC7B,GAAIM,EACJ,OAAIvB,GAAKe,SAASC,MAAMA,IACtBO,EAAMvB,EAAKE,OAAOc,GAAOX,MAEE,KAAvBkB,EAAIH,QAAQf,IACVY,KAAa,GACfI,QAAQC,IAAI,IAAMjB,EAAQ,oCAAsCW,EAAQ,MAGnE,IAGA,IAIF,IAQbf,KAAKuB,IAAM,SAAUC,EAAIC,GACvB,MAAOD,GAAGE,aAAa,QAAUD,IAMnCzB,KAAK2B,IAAM,SAAUH,EAAIC,GACvB,GAAIV,GAAQhB,EAAKwB,IAAIC,EAAIC,EACzB,OAAc,QAAVV,GACI,EAECA,KAAU,GAAmB,UAAVA,GACpB,GAGA,GAOVf,KAAK4B,IAAM,SAAUJ,EAAIT,EAAOO,GAClBhB,SAARgB,EACFA,GAAM,EAGDvB,EAAKe,SAASV,MAAMW,EAAOO,KAC9BA,EAAM,MAIE,OAARA,GACFE,EAAGK,aAAa,QAAUd,EAAOO,IAOrCtB,KAAK8B,OAAS,SAAUN,EAAIT,GAC1B,GAAIgB,GAAUhC,EAAKwB,IAAIC,EAAIT,EACX,QAAZgB,GAAgC,UAAZA,EACtBhC,EAAK6B,IAAIJ,EAAIT,GAAO,GAED,SAAZgB,EACPhC,EAAK6B,IAAIJ,EAAIT,GAAO,GAGpBK,QAAQC,IAAI,uBAAyBN,EAAQ,oDAAwDgB,EAAU,OAOnH/B,KAAKgC,OAAS,SAAUR,EAAIT,GACtBhB,EAAKe,SAASV,MAAMW,EAAOT,QAAW,GACxCkB,EAAGS,gBAAgB,QAAUlB,GAG7BS,EAAGK,aAAa,QAAUd,GAAO,IAUvCpB,EAAOA,MACPA,EAAKoB,MAAQ,GAAIjB,GAKK,mBAAXF,IAA0BA,EAAOsC,QAC1CtC,EAAOsC,QAAUvC,EACU,kBAAXE,IAAyBA,EAAOsC,IAChDtC,EAAO,WACL,MAAOF,KAGTD,OAAOC,KAAOA,GAEfD,OAAOC,KAAMD,OAAOE,OAAQF,OAAOG","file":"a11y-state.min.js","sourcesContent":[null],"sourceRoot":"/source/"} \ No newline at end of file +{"version":3,"sources":["?"],"names":["window","a11y","module","define","A11yState","self","this","suppressWarnings","states","busy","used","value","checked","undefined","disabled","expanded","grabbed","hidden","invalid","pressed","selected","validate","state","suppress","Object","keys","indexOf","console","error","val","get","el","attr","getAttribute","has","set","setAttribute","toggle","current","info","remove","removeAttribute","exports","amd"],"mappings":"CAIA,WACsB,OAAhBA,OAAOC,OACTD,OAAOC,YAKX,SAAWA,EAAMC,EAAQC,GACvB,YAEA,SAASC,KACP,GAAIC,GAAOC,IAKXA,MAAKC,kBAAmB,EAKxBD,KAAKE,QACHC,MACCC,MAAQ,EACRC,QACE,GACA,IAGHC,SACCF,MAAS,UACTC,QACE,GACA,EACA,QACAE,SAGHC,UACEJ,MAAQ,EACRC,QACE,GACA,IAGJI,UACEL,MACE,SACA,WACA,OACA,UACA,cACA,YACA,UAEFC,QACE,GACA,EACAE,SAGJG,SACEN,MAAQ,EACRC,QACE,GACA,EACAE,SAGJI,QACEP,MAAQ,EACRC,QACE,GACA,IAGJO,SACER,MAAQ,EACRC,QACE,GACA,EACA,UACA,aAGJQ,SACET,MAAS,UACTC,QACE,GACA,EACA,QACAE,SAGJO,UACEV,MACE,WACA,SACA,MACA,OAEFC,QACE,GACA,EACAE,UAQNP,KAAKe,UACHC,MAAO,SAAUA,EAAOC,GACtB,MAAgD,KAA5CC,OAAOC,KAAKpB,EAAKG,QAAQkB,QAAQJ,IACtCC,KAAa,GAASlB,EAAKE,kBAC7BoB,QAAQC,MAAM,IAAMN,EAAQ,gCAGhB,IAGA,GAGXX,MAAO,SAAUW,EAAOX,EAAOY,GAC7B,GAAIM,EACJ,OAAIxB,GAAKgB,SAASC,MAAMA,IACtBO,EAAMxB,EAAKG,OAAOc,GAAOX,MAEE,KAAvBkB,EAAIH,QAAQf,IACjBY,KAAa,GAASlB,EAAKE,kBAC7BoB,QAAQC,MAAM,IAAMjB,EAAQ,oCAAsCW,EAAQ,MAG9D,IAGA,IAIF,IAQbhB,KAAKwB,IAAM,SAAUC,EAAIC,GACvB,MAAOD,GAAGE,aAAa,QAAUD,IAMnC1B,KAAK4B,IAAM,SAAUH,EAAIC,GACvB,GAAIV,GAAQjB,EAAKyB,IAAIC,EAAIC,EACzB,OAAc,QAA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