Showing 460 of 700 total issues
Function addSampleButton
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.addSampleButton = function (options) {
var sourceCode,
opts = $.extend({}, SAMPLE_BUTTON_DEFAULTS, options),
$buttonBar = $("#sampleButtons"),
$container = $("<span />", {
Function generateFormElements
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateFormElements: function (selected, active, opts) {
opts = opts || {};
var nodeList,
selectedName =
Function domManip
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function domManip( collection, args, callback, ignored ) {
// Flatten any nested arrays
args = flat( args );
Function applyCommand
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
applyCommand: function (cmd, node, opts_) {
var // clipboard,
refNode;
// opts = $.extend(
// { setActive: true, clipboard: CLIPBOARD },
Function nodeSetExpanded
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeSetExpanded: function (ctx, flag, callOpts) {
var node = ctx.node,
tree = ctx.tree;
// flag defaults to true
Function ajaxConvert
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ajaxConvert( s, response, jqXHR, isSuccess ) {
var conv2, current, conv, tmp, prev,
converters = {},
// Work with a copy of dataTypes in case we need to modify it for conversion
Function nodeSetExpanded
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeSetExpanded: function (ctx, flag, callOpts) {
// flag defaults to true
flag = flag !== false;
if ((ctx.node.expanded && flag) || (!ctx.node.expanded && !flag)) {
Function _loadLazyNodes
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _loadLazyNodes(tree, local, keyList, mode, dfd) {
var i,
key,
l,
node,
Function process
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var process = function() {
var level = 0;
var levels = [0,0,0,0,0,0,0];
var hLevelText = '';
var prependText = '';
Function _walk
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _walk(node) {
var i,
l,
child,
s,
Function treeCreate
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
treeCreate: function (ctx) {
this._superApply(arguments);
this.$container.addClass("fancytree-ext-wide");
var containerId,
File jquery.simulate.js
has 260 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery Simulate v@VERSION - simulate browser mouse and keyboard events
* https://github.com/jquery/jquery-simulate
*
* Copyright jQuery Foundation and other contributors
Function init
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init = jQuery.fn.init = function( selector, context, root ) {
var match, elem;
// HANDLE: $(""), $(null), $(undefined), $(false)
if ( !selector ) {
Function updateBreadcrumb
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateBreadcrumb(key, loadTreeNodes) {
var $ol = $("ol.breadcrumb").addClass("busy"),
activeNode = taxonTree.getActiveNode();
if (activeNode && activeNode.key !== key) {
Function nodeSetFocus
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeSetFocus: function (ctx, flag) {
// ctx.node.debug("nodeSetFocus(" + flag + ")");
var ctx2,
tree = ctx.tree,
node = ctx.node,
Function bridge
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.widget.bridge = function( name, object ) {
var fullName = object.prototype.widgetFullName || name;
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string";
var args = widgetSlice.call( arguments, 1 );
Function bridge
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.widget.bridge = function( name, object ) {
var fullName = object.prototype.widgetFullName || name;
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string";
var args = widgetSlice.call( arguments, 1 );
Function nodeRenderStatus
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeRenderStatus: function (ctx) {
// Set classes for current status
var res,
node = ctx.node,
tree = ctx.tree,
Function bridge
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.widget.bridge = function( name, object ) {
var fullName = object.prototype.widgetFullName || name;
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string";
var args = widgetSlice.call( arguments, 1 );
Function Test
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Test(settings) {
this.expected = null;
this.assertions = [];
this.module = config.currentModule;
this.steps = [];