MCPcopy Create free account
hub / github.com/breck7/scroll / dispatch

Function dispatch

external/.datatables.js:15660–15673  ·  view source on GitHub ↗
(filesaver, event_types, event)

Source from the content-addressed store, hash-verified

15658 setTimeout(revoker, arbitrary_revoke_timeout)
15659 },
15660 dispatch = function (filesaver, event_types, event) {
15661 event_types = [].concat(event_types)
15662 var i = event_types.length
15663 while (i--) {
15664 var listener = filesaver["on" + event_types[i]]
15665 if (typeof listener === "function") {
15666 try {
15667 listener.call(filesaver, event || filesaver)
15668 } catch (ex) {
15669 throw_outside(ex)
15670 }
15671 }
15672 }
15673 },
15674 auto_bom = function (blob) {
15675 // prepend BOM for UTF-8 XML and text/* types (including HTML)
15676 // note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF

Callers 1

dispatch_allFunction · 0.70

Calls 2

throw_outsideFunction · 0.85
concatMethod · 0.80

Tested by

no test coverage detected