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

Function _loop

xadmin-dashboard/src/widgets/EChartBase.js:136–145  ·  view source on GitHub ↗
(eventName)

Source from the content-addressed store, hash-verified

134 //bind the events
135 bindEvents = (instance, events) => {
136 let _loop = (eventName) => {
137 // ignore the event config which not satisfy
138 if (typeof eventName === 'string' && typeof events[eventName] === 'function') {
139 // binding event
140 instance.off(eventName)
141 instance.on(eventName, (param) => {
142 events[eventName](param, instance)
143 })
144 }
145 }
146
147 for (let eventName in events) {
148 _loop(eventName)

Callers 3

bindEventsMethod · 0.85
bindEventsMethod · 0.85
EChartBase.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected