Showing 77 of 1,299 total issues
Function getCaretPosition
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getCaretPosition: function() {
var cal = calculator, self = this, element = self[0], elementOffset = self.offset();
// IE has easy way to get caret offset position
if ($.browser.msie && $.browser.version <= 9) {
- Create a ticketCreate a ticket
Function enumerateTrackList
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function enumerateTrackList() {
var allTracks = [];
for (var i = 1; i < tracks.length; i++) {
allTracks = allTracks.concat(tracks[i]);
}
- Create a ticketCreate a ticket
Function refresh_watchlist
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function refresh_watchlist() {
var email = $('#email').val();
crapi.clone(function(d) {
var watchlist = d[email]["watchlist"] || {};
- Create a ticketCreate a ticket
Function enumerateTrackList
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function enumerateTrackList() {
var allTracks = [];
for (var i = 1; i < tracks.length; i++) {
allTracks = allTracks.concat(tracks[i]);
}
- Create a ticketCreate a ticket
Function parseWatchlistItem
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseWatchlistItem(link, html, type) {
type = type || watchlistItemType(link);
// Enforce watchlist model
var updates = global.watchlistModel[type];
- Create a ticketCreate a ticket
Function initOptions
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initOptions() {
// Clone storage
crapi.clone("options", function(d) {
var options = d.options;
- Create a ticketCreate a ticket
Function loadOptions
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadOptions() {
/**
* This block probably needs to be in eventPage.js
*
* Enforcing storage model:
- Create a ticketCreate a ticket
Function reposition
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Opentip.prototype.reposition = function() {
var position, stem, _ref,
_this = this;
position = this.getPosition();
if (position == null) {
- Create a ticketCreate a ticket
Function initCookies
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initCookies() {
var options = localJSON("options");
//console.log("initCookies: %o", JSON.stringify(options));
- Create a ticketCreate a ticket
Function initLinks
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initLinks() {
var $options = $(".options");
var $showNotifs = $(".show-notifs");
var $clearNotifs = $(".clear-notifs");
var $openMessages = $(".open-messages");
- Create a ticketCreate a ticket
Function getDataUri
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getDataUri(url, overlayUrl, callback) {
if (typeof callback == "undefined") {
callback = overlayUrl;
overlayUrl = false;
}
- Create a ticketCreate a ticket
Function restore_options
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function restore_options() {
var email = $("#email").val();
crapi.clone(function(d) {
//Initialize user, if needed
- Create a ticketCreate a ticket
Function restore_options
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function restore_options() {
var email = $("#email").val();
crapi.clone(function(d) {
//Initialize user, if needed
- Create a ticketCreate a ticket
Function findElements
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Opentip.findElements = function() {
var adapter, content, element, optionName, optionValue, options, _i, _len, _ref, _results;
adapter = Opentip.adapter;
_ref = adapter.findAll(document.body, "[data-ot]");
_results = [];
- Create a ticketCreate a ticket
Function getTracks
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getTracks() {
$(".track").fadeOut(400, function() { $(this).remove(); });
$("#track-filter, #filter-result").fadeOut();
$('#tab-tracks aside').fadeOut(400, function() {
$('#tab-tracks .aside-cover').fadeOut(200);
- Create a ticketCreate a ticket
Function getTracks
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getTracks() {
$(".track").fadeOut(400, function() { $(this).remove(); });
$("#track-filter, #filter-result").fadeOut();
$('#tab-tracks aside').fadeOut(400, function() {
$('#tab-tracks .aside-cover').fadeOut(200);
- Create a ticketCreate a ticket
Function _buildElements
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Opentip.prototype._buildElements = function() {
var headerElement, titleElement;
this.tooltipElement = this.adapter.create("<div class=\"" + this["class"].opentip + "\"><div class=\"" + this["class"].header + "\"></div><div class=\"" + this["class"].content + "\"></div></div>");
this.backgroundCanvas = this.adapter.wrap(document.createElement("canvas"));
this.adapter.css(this.backgroundCanvas, {
- Create a ticketCreate a ticket
Function _continue
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _continue(blob) {
//Set up notification
var notif = {
type: "basic",
iconUrl: blob,
- Create a ticketCreate a ticket
Function setCss3Style
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Opentip.prototype.setCss3Style = function(element, styles) {
var prop, value, vendor, vendorProp, _results;
element = this.adapter.unwrap(element);
_results = [];
for (prop in styles) {
- Create a ticketCreate a ticket
Function initGroups
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initGroups() {
var $groupList = $(".main .group-list");
var $groupFilter = _factory(".modation-factory", ".modation-group-filter");
var $filter = $groupFilter.find(".filter");
- Create a ticketCreate a ticket