demos/vanillajs/js/view.js
Function render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
View.prototype.render = function (viewCmd, parameter) {
var that = this;
var viewCommands = {
showEntries: function () {
that.$todoList.innerHTML = that.template.show(parameter);
- Create a ticketCreate a ticket
Function bind
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
View.prototype.bind = function (event, handler) {
var that = this;
if (event === 'newTodo') {
$on(that.$newTodo, 'change', function () {
handler(that.$newTodo.value);
- Create a ticketCreate a ticket