1(function () { 2 var ACMS = function () {}; 3 ACMS.Admin = {}; 4 ACMS.eventPool = []; 5 6 ACMS.addListener = function (name, listener, options = false) { 7 document.addEventListener(name, listener, options); 8 // dispatch from pool 9 const events = ACMS.eventPool[name]; 10 if (events && events.length > 0) { 11 events.forEach(function (item) { 12 listener(item.event); 13 }); 14 } 15 }; 16 17 ACMS.dispatchEvent = function (name, dom = document, detail = {}, options = {}) { 18 const event = new CustomEvent(name, { 19 detail: detail, 20 ...options, 21 bubbles: true, 22 cancelable: false, 23 }); 24 event.obj = detail; // Ver.3.2.0以åã¨ã®äºææ§ãä¿ã¤ããã«è¿½å 25 dom.dispatchEvent(event); 26 if (!ACMS.eventPool[name]) { 27 ACMS.eventPool[name] = []; 28 } 29 ACMS.eventPool[name].push({ 30 event: event, 31 }); 32 }; 33 34 ACMS.Ready = function (listener) { 35 ACMS.addListener('acmsReady', listener); 36 }; 37 ACMS.Loaded = function (listener) { 38 if (document.readyState === 'complete') { 39 listener(); 40 } else { 41 window.addEventListener('load', listener); 42 } 43 }; 44 window.ACMS = ACMS; 45})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.