Showing 3 of 24 total issues
Function init
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function (name, data, path, controller) {
this.loading = false;
name = name.toLowerCase();
Consider simplifying this complex logical expression. Open
Open
if (href && !href.startsWith('#') && ((origin === window.location.origin) || !origin) &&
($(this).attr('target') != '_blank') && !$(this).data('go') && !event.ctrlKey && !event.metaKey) {
event.preventDefault();
Page.loading = true;
router.setRoute(href);
Function constructor
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function (params) {
this.filter = params.filter;
this.storageKey = params.storageKey || 'todos';
try {
this.models =