Showing 460 of 700 total issues
Function treeInit
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
treeInit: function (ctx) {
var tree = ctx.tree,
opts = tree.options;
//this.debug("Fancytree.treeInit()");
Function navigate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
navigate: function (where, activate) {
var node,
KC = $.ui.keyCode;
// Handle optional expand/collapse action for LEFT/RIGHT
Function attr
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attr: function( elem, name, value ) {
var ret, hooks,
nType = elem.nodeType;
// Don't get/set attributes on text, comment and attribute nodes
Function diffCommonOverlap
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DiffMatchPatch.prototype.diffCommonOverlap = function (text1, text2) {
var text1Length, text2Length, textLength, best, length, pattern, found; // Cache the text lengths to prevent multiple calls.
text1Length = text1.length;
text2Length = text2.length; // Eliminate the null case.
Function getTree
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getTree: function (el) {
var widget,
orgEl = el;
if (el instanceof Fancytree) {
Function applyDropEffectCallback
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function applyDropEffectCallback(event, data, allowDrop) {
var tree = data.tree,
dataTransfer = data.dataTransfer;
if (
Function fixPositionOptions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fixPositionOptions: function (opts) {
if (opts.offset || ("" + opts.my + opts.at).indexOf("%") >= 0) {
$.error(
"expected new position syntax (but '%' is not supported)"
);
Function left
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
left: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
outerWidth = within.width,
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
Function top
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
top: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
outerHeight = data.within.height,
collisionPosTop = position.top - data.collisionPosition.marginTop,
Function nodeRemoveChildren
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeRemoveChildren: function (ctx) {
var //subCtx,
tree = ctx.tree,
node = ctx.node,
children = node.children;
Function top
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
top: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
outerHeight = data.within.height,
collisionPosTop = position.top - data.collisionPosition.marginTop,
Function top
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
top: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
outerHeight = data.within.height,
collisionPosTop = position.top - data.collisionPosition.marginTop,
Function left
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
left: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
outerWidth = within.width,
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
Function parseHTML
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.parseHTML = function( data, context, keepScripts ) {
if ( typeof data !== "string" ) {
return [];
}
if ( typeof context === "boolean" ) {
Function buildNav
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildNav(members) {
var globalNav;
var nav = '<h2><a href="index.html">Home</a></h2>';
var seen = {};
var seenTutorials = {};
Function nodeSetStatus
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeSetStatus: function (ctx, status, message, details) {
var res,
span,
opts = ctx.options.glyph,
node = ctx.node;
Function left
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
left: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
outerWidth = within.width,
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
Function finish
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
finish: function( type ) {
if ( type !== false ) {
type = type || "fx";
}
return this.each( function() {
Function off
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
off: function( types, selector, fn ) {
var handleObj, type;
if ( types && types.preventDefault && types.handleObj ) {
// ( event ) dispatched jQuery.Event
Function keydown
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keydown: function( event ) {
switch ( event.keyCode ) {
case $.ui.keyCode.TAB:
// Waiting for close() will make popup hide too late, which breaks tab key behavior
this.element.hide();