-
Notifications
You must be signed in to change notification settings - Fork 1
/
mithril.sugartags.min.js
1 lines (1 loc) · 1.41 KB
/
mithril.sugartags.min.js
1
!function(){var T=function(T,n){T.sugarTags=T.sugarTags||{},n=n||T;var E,e=function(T,n){var E;for(E in n)n.hasOwnProperty(E)&&T.push(n[E]);return T},r=function(T){var n;for(n in T)if(T[n]&&T[n]["class"])return T[n]["class"].split(" ")},A=function(n){var E,A;return function(){var o=Array.prototype.slice.call(arguments);if(E=r(o)){A=[n+"."+E.join(".")];for(var O in o)o[O]&&o[O]["class"]&&delete o[O]["class"]}else A=[n];return(T.e?T.e:T).apply(this,e(A,o))}},o="A ABBR ACRONYM ADDRESS AREA ARTICLE ASIDE AUDIO B BDI BDO BIG BLOCKQUOTE BODY BR BUTTON CANVAS CAPTION CITE CODE COL COLGROUP COMMAND DATALIST DD DEL DETAILS DFN DIV DL DT EM EMBED FIELDSET FIGCAPTION FIGURE FOOTER FORM FRAME FRAMESET H1 H2 H3 H4 H5 H6 HEAD HEADER HGROUP HR HTML I IFRAME IMG INPUT INS KBD KEYGEN LABEL LEGEND LI LINK MAP MARK META METER NAV NOSCRIPT OBJECT OL OPTGROUP OPTION OUTPUT P PARAM PRE PROGRESS Q RP RT RUBY SAMP SCRIPT SECTION SELECT SMALL SOURCE SPAN SPLIT STRONG STYLE SUB SUMMARY SUP TABLE TBODY TD TEXTAREA TFOOT TH THEAD TIME TITLE TR TRACK TT UL VAR VIDEO WBR".split(" "),O={};for(E in o)o.hasOwnProperty(E)&&!function(T){var E=T.toLowerCase();n[T]=O[E]=A(E)}(o[E]);return T.sugarTags.lower=function(){return O},n};"undefined"!=typeof module&&null!==module&&module.exports?module.exports=T:"function"==typeof define&&define.amd?define(function(){return T}):T("undefined"!=typeof window?window.m||{}:{},"undefined"!=typeof window?window:{})}();