mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +00:00
2 lines
903 B
JavaScript
2 lines
903 B
JavaScript
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).jssPluginCamelCase={})}(this,(function(e){"use strict";var r=/[A-Z]/g,n=/^ms-/,t={};function a(e){return"-"+e.toLowerCase()}function f(e){if(t.hasOwnProperty(e))return t[e];var f=e.replace(r,a);return t[e]=n.test(f)?"-"+f:f}function o(e){var r={};for(var n in e){r[0===n.indexOf("--")?n:f(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?r.fallbacks=e.fallbacks.map(o):r.fallbacks=o(e.fallbacks)),r}e.default=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var r=0;r<e.length;r++)e[r]=o(e[r]);return e}return o(e)},onChangeValue:function(e,r,n){if(0===r.indexOf("--"))return e;var t=f(r);return r===t?e:(n.prop(t,e),null)}}},Object.defineProperty(e,"__esModule",{value:!0})}));
|