Showing 63 of 206 total issues
Function WebsiteOne
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function() { var modules = [], newPageLoaded = false, runOnceCallbacks = {}, moduleFactories = {};
- Create a ticketCreate a ticket
Function Datepicker
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Datepicker = function(element, options){ $.data(element, 'datepicker', this); this._events = []; this._secondaryEvents = [];
- Create a ticketCreate a ticket
Function init
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init() { $('.yt_link').on('click', selectVideo); $('#skills').tags({ readOnly: false,
- Create a ticketCreate a ticket
Function initialize
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function initialize(o, datasets) { var www; datasets = _.isArray(datasets) ? datasets : [].slice.call(arguments, 1); o = o || {}; www = WWW(o.classNames);
- Create a ticketCreate a ticket
Function _fill_yearsView
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_fill_yearsView: function(selector, cssClass, factor, year, startYear, endYear, beforeFn){ var html = ''; var step = factor / 10; var view = this.picker.find(selector); var startVal = Math.floor(year / factor) * factor;
- Create a ticketCreate a ticket
Function EventCountdown
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function EventCountdown() { var countdownClock, eventName, eventTime, eventDuration, eventUrl, textToAppend; var self = this; this.format = function(num) {
- Create a ticketCreate a ticket
Function Status
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Status = function() { "use strict"; function Status(options) { this.$el = $("<span></span>", { role: "status",
- Create a ticketCreate a ticket
Function attach
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function attach() { var $input, $wrapper, $hint, $menu, defaultHint, defaultMenu, eventBus, input, menu, status, typeahead, MenuConstructor; _.each(datasets, function(d) { d.highlight = !!o.highlight; });
- Create a ticketCreate a ticket
Function buildCss
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildCss() { var css = { wrapper: { position: "relative", display: "inline-block"
- Create a ticketCreate a ticket
Function click
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
click: function(e){ e.preventDefault(); e.stopPropagation(); var target, dir, day, year, month;
- Create a ticketCreate a ticket
Function DefaultMenu
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var DefaultMenu = function() { "use strict"; var s = Menu.prototype; function DefaultMenu() { Menu.apply(this, [].slice.call(arguments, 0));
- Create a ticketCreate a ticket
Function getClassNames
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getClassNames: function(date){ var cls = [], year = this.viewDate.getUTCFullYear(), month = this.viewDate.getUTCMonth(), today = UTCToday();
- Create a ticketCreate a ticket
Function css
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var css = (function() { var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ], cssProps = {}; function camelCase(string) {
- Create a ticketCreate a ticket
Function DateArray
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var DateArray = (function(){ var extras = { get: function(i){ return this.slice(i)[0]; },
- Create a ticketCreate a ticket
Function datepickerPlugin
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var datepickerPlugin = function(option){ var args = Array.apply(null, arguments); args.shift(); var internal_return; this.each(function(){
- Create a ticketCreate a ticket
Function moveMonth
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
moveMonth: function(date, dir){ if (!isValidDate(date)) return this.o.defaultViewDate; if (!dir) return date;
- Create a ticketCreate a ticket
Function WebsiteOne
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
Open
(function() { var modules = [], newPageLoaded = false, runOnceCallbacks = {}, moduleFactories = {};
- Read upRead up
- Create a ticketCreate a ticket
Function EventBus
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var EventBus = function() { "use strict"; var namespace, deprecationMap; namespace = "typeahead:"; deprecationMap = {
- Create a ticketCreate a ticket
Function Typeahead
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Typeahead(o, www) { var onFocused, onBlurred, onEnterKeyed, onTabKeyed, onEscKeyed, onUpKeyed, onDownKeyed, onLeftKeyed, onRightKeyed, onQueryChanged, onWhitespaceChanged; o = o || {}; if (!o.input) { $.error("missing input");
- Create a ticketCreate a ticket
Function update
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update: function update(query) { var that = this, canceled = false, syncCalled = false, rendered = 0; this.cancel(); this.cancel = function cancel() { canceled = true;
- Create a ticketCreate a ticket