File modules/cms/ui/themes/default/script/plugin/jquery-plugin-toggleAttr.min.js
Last commit: Sat Dec 18 03:47:23 2021 +0100 dankert New: Every ES6-Module should have a minified version for performance reasons. Bad: The Minifier "Jsqueeze" is unable to minify ES6-modules, so we had to implement a simple JS-Minifier which strips out all comments.
1 import $ from "../jquery-global.min.js"; 2 export default function(attr, attr1, attr2) { 3 return this.each(function() { 4 let self = $(this); 5 if (self.attr(attr) == attr1) 6 self.attr(attr, attr2); 7 else 8 self.attr(attr, attr1); 9 }); 10 };
Downloadmodules/cms/ui/themes/default/script/plugin/jquery-plugin-toggleAttr.min.js
History Sat, 18 Dec 2021 03:47:23 +0100 dankert New: Every ES6-Module should have a minified version for performance reasons. Bad: The Minifier "Jsqueeze" is unable to minify ES6-modules, so we had to implement a simple JS-Minifier which strips out all comments.