Showing 460 of 700 total issues
Function clearFilter
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.ui.fancytree._FancytreeClass.prototype.clearFilter = function () {
var $title,
statusNode = this.getRootNode()._findDirectChild(KeyNoData),
escapeTitles = this.options.escapeTitles,
enhanceTitle = this.options.enhanceTitle,
Function select
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
select = Sizzle.select = function( selector, context, results, seed ) {
var i, tokens, token, type, find,
compiled = typeof selector === "function" && selector,
match = !seed && tokenize( ( selector = compiled.selector || selector ) );
Function matcherFromTokens
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function matcherFromTokens( tokens ) {
var checkContext, matcher, j,
len = tokens.length,
leadingRelative = Expr.relative[ tokens[ 0 ].type ],
implicitRelative = leadingRelative || Expr.relative[ " " ],
Function _classes
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_classes: function( options ) {
var full = [];
var that = this;
options = $.extend( {
Function _classes
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_classes: function( options ) {
var full = [];
var that = this;
options = $.extend( {
Function keyHandler
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function keyHandler(handleObj) {
if (typeof handleObj.data === "string") {
handleObj.data = {
keys: handleObj.data
};
Function _classes
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_classes: function( options ) {
var full = [];
var that = this;
options = $.extend( {
Function initContextMenu
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var initContextMenu = function (tree, selector, menu, actions) {
tree.$container.on("mousedown.contextMenu", function (event) {
var node = $.ui.fancytree.getNode(event);
if (node) {
Function reRegister
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.ui.fancytree._FancytreeNodeClass.prototype.reRegister = function (
key,
refKey
) {
key = key == null ? null : "" + key;
Function addCombinator
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addCombinator( matcher, combinator, base ) {
var dir = combinator.dir,
skip = combinator.next,
key = skip || dir,
checkNonElements = base && key === "parentNode",
Function initIframe
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initIframe() {
var iframeWin,
body = document.body;
function onIframeLoad() {
Function tokenize
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
var matched, match, tokens, type,
soFar, groups, preFilters,
cached = tokenCache[ selector + " " ];
Function val
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
val: function( value ) {
var hooks, ret, valueIsFunction,
elem = this[ 0 ];
if ( !arguments.length ) {
Function done
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function done() {
// We have reached the end of the processing queue and are about to emit the
// "runEnd" event after which reporters typically stop listening and exit
// the process. First, check if we need to emit one final test.
if (config.stats.testCount === 0 && config.failOnZeroTests === true) {
Function initCodeSamples
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initCodeSamples() {
var info,
$source = $("#sourceCode");
$("#codeExample").clickToggle(
Function leverageNative
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function leverageNative( el, type, expectSync ) {
// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
if ( !expectSync ) {
if ( dataPriv.get( el, type ) === undefined ) {
Function data
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: function( key, value ) {
var i, name, data,
elem = this[ 0 ],
attrs = elem && elem.attributes;
Function diffLineMode
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DiffMatchPatch.prototype.diffLineMode = function (text1, text2, deadline) {
var a, diffs, linearray, pointer, countInsert, countDelete, textInsert, textDelete, j; // Scan the text on a line-by-line basis first.
a = this.diffLinesToChars(text1, text2);
text1 = a.chars1;
Function renderCode
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderCode: function(){
var plugin = $(this.element).data("ui-" + this.options.pluginName) || $(this.element).data(this.options.pluginName),
opts = this.options,
actualOpts = plugin.options,
availOptList = opts.optionList,
Function helper
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
helper: function (event) {
var $helper,
$nodeTag,
opts,
sourceNode = $.ui.fancytree.getNode(