src/app/widgetBase.js
Function WidgetBase
has 305 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WidgetBase( params ) {
var self = this,
MAX_RETRIES = 3;
Function processData
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.processData = function ( rawdata, timescale, grouping, timestamp ) {
var timeWord = ( timescale === 'Day' ? 'Dai' : timescale ) + 'ly',
totals,
counts,
File widgetBase.js
has 320 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
define( [
'jquery',
'knockout',
'operators'
], function ( $, ko, ops ) {
Function filterText
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.filterText = ko.computed( function () {
var filterName,
text,
parts = [],
choices = self.userChoices(),
Function saveWidgetConfig
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.saveWidgetConfig = function () {
self.config.userChoices = self.userChoices();
self.config.filterQueryString = self.filterQueryString();
var data = JSON.stringify( {