Showing 460 of 700 total issues
Function nodeRenderTitle
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeRenderTitle: function (ctx, title) {
var $cb,
res,
tree = ctx.tree,
node = ctx.node,
Function _requireExtension
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_requireExtension: function (name, required, before, message) {
if (before != null) {
before = !!before;
}
var thisName = this._local.name,
Function loadKeyPath
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadKeyPath: function (keyPathList, optsOrCallback) {
var callback,
i,
path,
self = this,
Function extend
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.extend = jQuery.fn.extend = function() {
var options, name, src, copy, copyIsArray, clone,
target = arguments[ 0 ] || {},
i = 1,
length = arguments.length,
Function nodeSetExpanded
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeSetExpanded: function (ctx, flag, callOpts) {
var res,
self = this,
node = ctx.node,
$leftTr = $(node.tr),
Function _changeSelectStatusAttrs
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_changeSelectStatusAttrs: function (state) {
var changed = false,
opts = this.tree.options,
unselectable = FT.evalOption(
"unselectable",
Function ConsoleReporter
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ConsoleReporter = /*#__PURE__*/function () {
function ConsoleReporter(runner) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
_classCallCheck(this, ConsoleReporter);
Function redrawViewport
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.ui.fancytree._FancytreeClass.prototype.redrawViewport = function (force) {
if (this._enableUpdate === false) {
// tree.debug("no render", tree._enableUpdate);
return;
}
Function toDict
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toDict: function (recursive, callback) {
var i,
l,
node,
res,
Function stop
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
stop: function (event, ui) {
var logObject,
// 'draggable' was renamed to 'ui-draggable' since jQueryUI 1.10:
draggable =
$(this).data("ui-draggable") ||
Function style
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
style: function( elem, name, value, extra ) {
// Don't set styles on text and comment nodes
if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
return;
Function adjustCSS
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function adjustCSS( elem, prop, valueParts, tween ) {
var adjusted, scale,
maxIterations = 20,
currentValue = tween ?
function() {
Function dispatch
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dispatch: function( nativeEvent ) {
var i, j, ret, matched, handleObj, handlerQueue,
args = new Array( arguments.length ),
Function access
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
var i = 0,
len = elems.length,
bulk = key == null;
Function updateItemDetails
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateItemDetails(key) {
$("#tmplDetails").addClass("busy");
$.bbq.pushState({ key: key });
$.when(
Function stop
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
stop: function( type, clearQueue, gotoEnd ) {
var stopQueue = function( hooks ) {
var stop = hooks.stop;
delete hooks.stop;
stop( gotoEnd );
Function findNeighbourTd
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function findNeighbourTd(tree, $target, keyCode) {
var nextNode,
node,
navMap = { "ctrl+home": "first", "ctrl+end": "last" },
$td = $target.closest("td"),
Function nodeClick
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeClick: function (ctx) {
var activate,
expand,
// event = ctx.originalEvent,
targetType = ctx.targetType,
Function on
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function on( elem, types, selector, data, fn, one ) {
var origFn, type;
// Types can be a map of types/handlers
if ( typeof types === "object" ) {
Function toggleClass
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggleClass: function( value, stateVal ) {
var type = typeof value,
isValidValue = type === "string" || Array.isArray( value );
if ( typeof stateVal === "boolean" && isValidValue ) {