Showing 1,675 of 1,675 total issues
Avoid deeply nested control flow statements. Open
Open
for (indx = 1; indx < len; indx++) {
// secondary, tertiary, etc sort column classes
$cells.eq(sortList[indx][0]).addClass( css[indx] || css[last] );
}
Function node
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
'node': function(elem, props, delta, map, getter, setter) {
Avoid deeply nested control flow statements. Open
Open
if ( $.inArray(i, columnIndex) > -1 ) {
var txt;
if (data.parsed[i]) {
txt = data.cacheArray[i];
} else {
Function computeDim
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
computeDim: function(tail, initElem, w, coord, comp, prop) {
Function edge
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
'edge': function(elem, props, delta, mapKey, getter, setter) {
Avoid deeply nested control flow statements. Open
Open
if (noMatchSource || noMatchTarget)
continue inner;
Avoid deeply nested control flow statements. Open
Open
if (!jpc.isDetachAllowed(jpc) || !jpc.endpoints[idx].isDetachAllowed(jpc) || !jpc.suspendedEndpoint.isDetachAllowed(jpc) || !_jsPlumb.checkCondition("beforeDetach", jpc))
_doContinue = false;
Avoid deeply nested control flow statements. Open
Open
if (endpoints[i] != endpoint) newEndpoints.push(endpoints[i]);
Avoid deeply nested control flow statements. Open
Open
if (targetContinuous) _updateAnchorList(anchorLists[targetId], o.theta2, -1, conn, true, sourceId, 1, true, o.a[1], targetId, connectionsToPaint, endpointsToPaint);
Avoid deeply nested control flow statements. Open
Open
if (!o) {
o = calculateOrientation(sourceId, targetId, sd.o, td.o, conn.endpoints[0].anchor, conn.endpoints[1].anchor);
orientationCache[oKey] = o;
// this would be a performance enhancement, but the computed angles need to be clamped to
//the (-PI/2 -> PI/2) range in order for the sorting to work properly.
Function calculateOrientation
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
calculateOrientation = function(sourceId, targetId, sd, td, sourceAnchor, targetAnchor) {
Avoid deeply nested control flow statements. Open
Open
if (connection.endpointsToDeleteOnDetach){
for (var i = 0; i < connection.endpointsToDeleteOnDetach.length; i++) {
var cde = connection.endpointsToDeleteOnDetach[i];
if (cde && cde.connections.length == 0)
_jsPlumb.deleteEndpoint(cde);
Avoid deeply nested control flow statements. Open
Open
if (params.draggable)
jsPlumb.CurrentLibrary.initDraggable(self.element, dragOptions, true, _jsPlumb);
Function _node
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
_node = function(name, d, atts, parent, _jsPlumb, deferToJsPlumbContainer) {
Avoid deeply nested control flow statements. Open
Open
if (!this.isObject(c[i]))
c[i] = {};
Avoid deeply nested control flow statements. Open
Open
if (idx == 0) {
jpc.source = jpc.suspendedEndpoint.element;
jpc.sourceId = jpc.suspendedEndpoint.elementId;
} else {
jpc.target = jpc.suspendedEndpoint.element;
Function _curryAnchor
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var _curryAnchor = function(x, y, ox, oy, type, fnInit) {
Avoid deeply nested control flow statements. Open
Open
if (otherEndpoint.connections[k] !== endpointConnections[i][0])
jsPlumbUtil.addWithFunction(connectionsToPaint, otherEndpoint.connections[k], function(c) { return c.id == otherEndpoint.connections[k].id; });
Avoid deeply nested control flow statements. Open
Open
if (sourceContinuous) _updateAnchorList(anchorLists[sourceId], o.theta, 0, conn, false, targetId, 0, false, o.a[0], sourceId, connectionsToPaint, endpointsToPaint);
Avoid deeply nested control flow statements. Open
Open
for (var j in b[i])
c[i][j] = b[i][j];