src/emitter.js
Function definition
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function definition(Weakmap, iterate) {
var regexMatchExcludedMethods = /^(_|((get|has|is)([A-Z]|$))|(on|one|off|emit|constructor)$)/,
objectDefineProperty = Object.defineProperty,
objectGetOwnPropertyNames = Object.getOwnPropertyNames,
objectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor,
Avoid deeply nested control flow statements. Open
Open
if(listener === fn) {
pointer[event].splice(j, 1);
j--;
}