File modules/cms/ui/themes/default/script/openrat/callback.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 export default class Callback { 2 constructor() { 3 this.list = []; 4 } 5 add( callable ) { 6 this.list.push( callable ); 7 } 8 fire() { 9 for( let c of this.list) 10 c.apply(null,arguments); 11 } 12 } 13 Callback.afterViewLoadedHandler = new Callback(); 14 Callback.dataChangedHandler = new Callback(); 15 Callback.afterNewActionHandler = new Callback(); 16 Callback.afterAllViewsLoaded = new Callback();
Downloadmodules/cms/ui/themes/default/script/openrat/callback.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.