htdocs/assets/js/app.js
File app.js
has 377 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"use strict";
define(function(require) {
var $ = require('jquery'),
_ = require('underscore'),
Backbone = require('backbone'),
Function _ajax
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_ajax: function(options) {
options = options || {};
// Whether we've displayed the results of this request.
var processed = false;
Function changeSelectable
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
changeSelectable: function(down, group) {
// Don't do anything if we have no selectables.
if(this.selectableGroups.length === 0) {
return;
}
Function App
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var App = function() {
// Store a global collection of each type. This allows for caching objects between pages.
this.Data = {
Searches: new SearchCollection(),
Alerts: new AlertCollection(),
Consider simplifying this complex logical expression. Open
Open
if(
!('href' in anchor) ||
anchor.target === '_blank' ||
anchor.href.length === 0 ||
anchor.href.indexOf('#') !== -1 ||
Function beforeRoute
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
beforeRoute: function(route) {
if(this.View.Current) {
var val = this.View.Current.onExit();
// onExit returned false, deny.
var deny = _.isBoolean(val) && !val;