MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / _loop

Method _loop

xadmin-dashboard/src/widgets/WebGL.js:38–47  ·  view source on GitHub ↗
(eventName)

Source from the content-addressed store, hash-verified

36 //bind the events
37 bindEvents(instance, events) {
38 let _loop = (eventName) => {
39 // ignore the event config which not satisfy
40 if (typeof eventName === 'string' && typeof events[eventName] === 'function') {
41 // binding event
42 instance.off(eventName)
43 instance.on(eventName, (param) => {
44 events[eventName](param, instance)
45 })
46 }
47 }
48
49 for (let eventName in events) {
50 _loop(eventName)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected