Showing 460 of 700 total issues
Function activateCell
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.ui.fancytree._FancytreeClass.prototype.activateCell = function (
$td,
orgEvent
) {
var colIdx,
Function moveTo
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
moveTo: function (targetNode, mode, map) {
if (mode === undefined || mode === "over") {
mode = "child";
} else if (mode === "firstChild") {
if (targetNode.children && targetNode.children.length) {
Function diffBisect
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DiffMatchPatch.prototype.diffBisect = function (text1, text2, deadline) {
var text1Length, text2Length, maxD, vOffset, vLength, v1, v2, x, delta, front, k1start, k1end, k2start, k2end, k2Offset, k1Offset, x1, x2, y1, y2, d, k1, k2; // Cache the text lengths to prevent multiple calls.
text1Length = text1.length;
text2Length = text2.length;
Function CHILD
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"CHILD": function( type, what, _argument, first, last ) {
var simple = type.slice( 0, 3 ) !== "nth",
forward = type.slice( -4 ) !== "last",
ofType = what === "of-type";
Function Sizzle
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Sizzle( selector, context, results, seed ) {
var m, i, elem, nid, match, groups, newSelector,
newContext = context && context.ownerDocument,
// nodeType defaults to 9, since context defaults to document
Function treeInit
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
treeInit: function (ctx) {
var $tdFirst,
$ul,
tree = ctx.tree,
$table = tree.widget.element;
Function widget
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.widget = function( name, base, prototype ) {
var existingConstructor, constructor, basePrototype;
// ProxiedPrototype allows the provided prototype to remain unmodified
// so that it can be used as a mixin for multiple widgets (#8876)
Function widget
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.widget = $.widget || function( name, base, prototype ) {
var existingConstructor, constructor, basePrototype;
// ProxiedPrototype allows the provided prototype to remain unmodified
// so that it can be used as a mixin for multiple widgets (#8876)
Function setViewport
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.ui.fancytree._FancytreeClass.prototype.setViewport = function (opts) {
if (typeof opts === "boolean") {
this.debug("setViewport( " + opts + ")");
return this.setViewport({ enabled: opts });
}
Function send
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
send: function( headers, complete ) {
var i,
xhr = options.xhr();
xhr.open(
Function widget
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.widget = function( name, base, prototype ) {
var existingConstructor, constructor, basePrototype;
// ProxiedPrototype allows the provided prototype to remain unmodified
// so that it can be used as a mixin for multiple widgets (#8876)
File taxonomy-browser-itis.js
has 295 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Fancytree Taxonomy Browser
*
* Copyright (c) 2015, Martin Wendt (https://wwWendt.de)
*
Function nodeSetActive
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeSetActive: function (ctx, flag, callOpts) {
// Handle user click / [space] / [enter], according to clickFolderMode.
callOpts = callOpts || {};
var subCtx,
node = ctx.node,
Function _setDndStatus
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setDndStatus: function (
sourceNode,
targetNode,
helper,
hitMode,
Function treeInit
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
treeInit: function (ctx) {
var tree = ctx.tree,
treeOpts = ctx.options,
opts = treeOpts.ariagrid;
Function editStart
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.ui.fancytree._FancytreeNodeClass.prototype.editStart = function () {
var $input,
node = this,
tree = this.tree,
local = tree.ext.edit,
File jquery.fancytree.edit.js
has 290 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jquery.fancytree.edit.js
*
* Make node titles editable.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
Function drag
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function (event, ui) {
var ctx,
isHelper,
logObject,
// 'draggable' was renamed to 'ui-draggable' since jQueryUI 1.10
Function matcherFromGroupMatchers
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
var bySet = setMatchers.length > 0,
byElement = elementMatchers.length > 0,
superMatcher = function( seed, context, xml, results, outermost ) {
var elem, j, matcher,
Function add
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
add: function( elem, types, handler, data, selector ) {
var handleObjIn, eventHandle, tmp,
events, t, handleObj,
special, handlers, type, namespaces, origType,