Showing 460 of 700 total issues
Function mouseEvent
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mouseEvent: function( type, options ) {
var event, eventDoc, doc, body;
options = $.extend({
bubbles: true,
cancelable: (type !== "mousemove"),
Function diffHalfMatch
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DiffMatchPatch.prototype.diffHalfMatch = function (text1, text2) {
var longtext, shorttext, dmp, text1A, text2B, text2A, text1B, midCommon, hm1, hm2, hm;
longtext = text1.length > text2.length ? text1 : text2;
shorttext = text1.length > text2.length ? text2 : text1;
Function nodeSetSelected
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeSetSelected: function (ctx, flag, callOpts) {
callOpts = callOpts || {};
var node = ctx.node,
tree = ctx.tree,
opts = ctx.options,
Function remove
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( elem, types, handler, selector, mappedTypes ) {
var j, origCount, tmp,
events, t, handleObj,
special, handlers, type, namespaces, origType,
Function _renderOptions
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_renderOptions: 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 treeInit
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
treeInit: function (ctx) {
var opts = ctx.options,
tree = ctx.tree;
this._superApply(arguments);
Function init
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function (options) {
var i,
opts = $.extend({}, defaultOptions, options),
hrefs = [],
$link = null,
Function buildFragment
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildFragment( elems, context, scripts, selection, ignored ) {
var elem, tmp, tag, wrap, attached, j,
fragment = context.createDocumentFragment(),
nodes = [],
i = 0,
Function name
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string";
var args = widgetSlice.call( arguments, 1 );
var returnValue = this;
Function name
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string";
var args = widgetSlice.call( arguments, 1 );
var returnValue = this;
Function treeCreate
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
treeCreate: function (ctx) {
var tree = ctx.tree,
opts = ctx.options;
if (
Function updateBreadcrumb
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateBreadcrumb(tsn, loadTreeNodes) {
// var $ol = $("ol.breadcrumb").text("...");
var $ol = $("ol.breadcrumb").addClass("busy");
_callItis("getFullHierarchyFromTSN", {
tsn: tsn,
Consider simplifying this complex logical expression. Open
Open
if ( ( mappedTypes || origType === handleObj.origType ) &&
( !handler || handler.guid === handleObj.guid ) &&
( !tmp || tmp.test( handleObj.namespace ) ) &&
( !selector || selector === handleObj.selector ||
selector === "**" && handleObj.selector ) ) {
Function name
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string";
var args = widgetSlice.call( arguments, 1 );
var returnValue = this;
Function internalStop
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
internalStop: function internalStop() {
var requiredCalls = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
config.blocking = true;
var test = this;
var pauseId = this.nextPauseId++;
Function toolbarChanged
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toolbarChanged() {
var field = this;
var params = {}; // Detect if field is a select menu or a checkbox
var value;
Consider simplifying this complex logical expression. Open
Open
if(jQuery)( function() {
/* Check browser version, since $.browser was removed in jQuery 1.9 */
function _checkBrowser(){
var matched, browser;
Function addChildren
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addChildren: function (children, insertBefore) {
var i,
l,
pos,
origFirstChild = this.getFirstChild(),
Function diffCleanupEfficiency
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DiffMatchPatch.prototype.diffCleanupEfficiency = function (diffs) {
var changes, equalities, equalitiesLength, lastequality, pointer, preIns, preDel, postIns, postDel;
changes = false;
equalities = []; // Stack of indices where equalities are found.
Function _createForOfIteratorHelper
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _createForOfIteratorHelper(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (!it) {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {