Showing 836 of 1,675 total issues
Avoid deeply nested control flow statements. Open
Open
if (filterMatched !== null) {
showRow = filterMatched;
} else {
if (wo.filter_startsWith) {
showRow = false;
Avoid deeply nested control flow statements. Open
Open
if (data.filter) {
data.cache = data.cacheArray[columnIndex];
// check if column data should be from the cell or from parsed data
if (wo.filter_useParsedData || data.parsed[columnIndex]) {
data.exact = data.cache;
Avoid deeply nested control flow statements. Open
Open
for (string in fxn) {
if (typeof string === 'string') {
options += options === '' ?
'<option value="">' + ($header.data('placeholder') || $header.attr('data-placeholder') || wo.filter_placeholder.select || '') + '</option>' : '';
val = string;
Avoid deeply nested control flow statements. Open
Open
if ($.isArray(setFilters)) {
// skip first (latest input) to maintain cursor position while typing
if (skipFirst) { $column.slice(1); }
if (i === c.columns) {
// prevent data-column="all" from filling data-column="0,1" (etc)
Avoid deeply nested control flow statements. Open
Open
if (!searchFiltered) { indx = columnIndex; }
Avoid deeply nested control flow statements. Open
Open
if (cell) {
arry.push( $.trim( cell.textContent || cell.innerText || $(cell).text() ) );
}
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) {