(e)
| 21 | export function once (el, type, callback) { |
| 22 | let typeArray = type.split(' '); |
| 23 | let recursiveFunction = function(e){ |
| 24 | e.target.removeEventListener(e.type, recursiveFunction); |
| 25 | return callback(e); |
| 26 | }; |
| 27 | |
| 28 | for (let i = typeArray.length - 1; i >= 0; i--) { |
| 29 | on(el, typeArray[i], recursiveFunction); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…