adobe/brackets

View on GitHub
src/utils/EventDispatcher.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function off has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var off = function (events, fn) {
        if (!this._eventHandlers) {
            return this;
        }

Severity: Minor
Found in src/utils/EventDispatcher.js - About 1 hr to fix

    Function on has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var on = function (events, fn) {
            var eventsList = events.split(/\s+/).map(splitNs),
                i;
    
            if (!fn) {
    Severity: Minor
    Found in src/utils/EventDispatcher.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status