PageSourceSearch

https://devdocs.io/assets/lib/events-0e15e1fdca043c8b2de567c00d6549d84bd8f9f01f5c2f95d0636748c0cfcf61.js

js devdocs.io collected 2026-09-24 08:30:17 UTC 717 bytes, 1 lines download raw bytes

1export class Events{_callbacks;eventInProgress;on(s,l){if(s.includes(" "))for(var t of s.split(" "))this.on(t,l);else this._callbacks||={},this._callbacks[s]||=[],this._callbacks[s].push(l);return this}off(s,l){let t,e;if(s.includes(" "))for(var i of s.split(" "))this.off(i,l);else(t=this._callbacks?.[s])&&(e=t.indexOf(l))>=0&&(t.splice(e,1),t.length||delete this._callbacks[s]);return this}trigger(s,...l){this.eventInProgress={name:s,args:l};const t=this._callbacks?.[s];if(t)for(const s of t.slice(0))"function"==typeof s&&s(...l);return this.eventInProgress=null,"all"!==s&&this.trigger("all",s,...l),this}removeEvent(s){if(null!=this._callbacks)for(var l of s.split(" "))delete this._callbacks[l];return this}}

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.