daniellmb/AQUA

View on GitHub
demos/vanillajs/js/view.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function render has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    View.prototype.render = function (viewCmd, parameter) {
        var that = this;
        var viewCommands = {
            showEntries: function () {
                that.$todoList.innerHTML = that.template.show(parameter);
Severity: Minor
Found in demos/vanillajs/js/view.js - About 1 hr to fix

Function bind has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    View.prototype.bind = function (event, handler) {
        var that = this;
        if (event === 'newTodo') {
            $on(that.$newTodo, 'change', function () {
                handler(that.$newTodo.value);
Severity: Minor
Found in demos/vanillajs/js/view.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status