Showing 28 of 69 total issues
Function utils
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function utils () {
/* tooltips */
$('[data-toggle="tooltip"]').tooltip()
/* click on the box activates the radio */
Function drawPolygon
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
GMaps.prototype.drawPolygon = function(options) {
var useGeoJSON = false;
if(options.hasOwnProperty("useGeoJSON")) {
useGeoJSON = options.useGeoJSON;
Function buildContextMenuHTML
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var buildContextMenuHTML = function(control, e) {
var html = '',
options = window.context_menu[self.el.id][control];
for (var i in options){
Function setContextMenu
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.setContextMenu = function(options) {
window.context_menu[self.el.id][options.control] = {};
var i,
ul = doc.createElement('ul');
Function indexOf
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) {
"use strict";
if (this == null) {
throw new TypeError();
}
Function productDetailGallery
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function productDetailGallery (confDetailSwitch) {
$('.thumb:first').addClass('active')
var timer = setInterval(autoSwitch, confDetailSwitch)
$('.thumb').click(function (e) {
Avoid deeply nested control flow statements. Open
Open
if (vertex1.lat() + (latLng.lng() - vertex1.lng()) / (vertex2.lng() - vertex1.lng()) * (vertex2.lat() - vertex1.lat()) < latLng.lat()) {
inPoly = !inPoly;
}
Avoid deeply nested control flow statements. Open
Open
if (p == 'hue' || p == 'color') {
ruleArg = '0x' + ruleArg.substring(1);
}