src/utils/EventDispatcher.js
Function off
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var off = function (events, fn) {
if (!this._eventHandlers) {
return this;
}
Function on
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var on = function (events, fn) {
var eventsList = events.split(/\s+/).map(splitNs),
i;
if (!fn) {