Mobius1/Selectable

View on GitHub

Showing 5 of 5 total issues

Avoid deeply nested control flow statements.
Open

                                for ( var i = 0, count = handles.length; i < count; i++ ) {
                                    var handle = handles[i];
                                    handle.classList.remove(o.handle);
                                }
Severity: Major
Found in selectable.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                    for ( var j = 0, count = handles.length; j < count; j++ ) {
                                        var handle = handles[j];
                                        handle.classList.add(this.config.classes.handle);
                                    }
    Severity: Major
    Found in selectable.js - About 45 mins to fix

      Function _rotatePoint has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              function _rotatePoint(px, py, x, y, theta) {
      Severity: Minor
      Found in selectable.js - About 35 mins to fix

        Avoid too many return statements within this function.
        Open

                        if (!node) return false;
        Severity: Major
        Found in selectable.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                              return false;
          Severity: Major
          Found in selectable.js - About 30 mins to fix
            Severity
            Category
            Status
            Source
            Language