Showing 14,752 of 14,752 total issues
Consider simplifying this complex logical expression. Open
Open
} else if (sp.from <= pos && (sp.to == null || sp.to > pos || m.collapsed && sp.to == pos && sp.from == pos)) {
if (sp.to != null && sp.to != pos && nextChange > sp.to) {
nextChange = sp.to;
spanEndStyle = "";
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (prop.type === "text" || prop.type === "number" || prop.type === "url" ||
prop.type === "date" || prop.type === "email" || prop.type === "year_date")
return new InputForm(prop.label, isMandatory, prop.type, prop.description,
value ? value : "", port, prop.vocabulary, prop.sid);
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (autoPlace) {
var $parent = this.$element.parent();
var orgPlacement = placement;
var docScroll = document.documentElement.scrollTop || document.body.scrollTop;
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if(this.options.unsavedclass) {
/*
Add unsaved css to element if:
- url is not user's function
- value was not sent to server
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (
inst.options.greedy &&
!inst.options.disabled &&
inst.options.scope === draggable.options.scope &&
inst.accept.call( inst.element[ 0 ], ( draggable.currentItem || draggable.element ) ) &&
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if ( o.mode === "toggle" && mode === "show" ) {
el.from = o.to || zero;
el.to = o.from || original;
} else {
el.from = o.from || ( mode === "show" ? zero : original );
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if ( tab.hasClass( "ui-state-disabled" ) ||
// tab is already loading
tab.hasClass( "ui-tabs-loading" ) ||
// can't switch durning an animation
this.running ||
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
curElem = hook === "backgroundColor" ? elem.parentNode : elem;
while (
(backgroundColor === "" || backgroundColor === "transparent") &&
curElem && curElem.style
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if ( ( this.options.values.length === 2 && this.options.range === true ) &&
( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) )
) {
newVal = otherVal;
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
} else if (sp.from <= pos && (sp.to == null || sp.to > pos || m.collapsed && sp.to == pos && sp.from == pos)) {
if (sp.to != null && sp.to != pos && nextChange > sp.to) {
nextChange = sp.to
spanEndStyle = ""
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (opId == hist.lastSelOp ||
(origin && hist.lastSelOrigin == origin &&
(hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin ||
selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))))
{ hist.done[hist.done.length - 1] = sel }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (eventInWidget(cm.display, e) || signalDOMEvent(cm, e) || e.ctrlKey && !e.altKey || mac && e.metaKey) { return }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (!different && toUpdate == 0 && !update.force && display.renderedView == display.view &&
(display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo))
{ return false }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (curAnchor && !curAnchor.bad && curFocus && !curFocus.bad &&
cmp(minPos(curAnchor, curFocus), from) == 0 &&
cmp(maxPos(curAnchor, curFocus), to) == 0)
{ return }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
} else if (unit == "word" || unit == "group") {
var sawType = null, group = unit == "group"
var helper = doc.cm && doc.cm.getHelper(pos, "wordChars")
for (var first = true;; first = false) {
if (dir < 0 && !moveOnce(!first)) { break }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (display.wheelStartX == null) {
display.wheelStartX = scroll.scrollLeft; display.wheelStartY = scroll.scrollTop
display.wheelDX = dx; display.wheelDY = dy
setTimeout(function () {
if (display.wheelStartX == null) { return }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (ie && ie_version < 9 && !start && (!rect || !rect.left && !rect.right)) {
var rSpan = node.parentNode.getClientRects()[0]
if (rSpan)
{ rect = {left: rSpan.left, right: rSpan.left + charWidth(cm.display), top: rSpan.top, bottom: rSpan.bottom} }
else
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (fromCmp <= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.to, from) >= 0 : cmp(found.to, from) > 0) ||
fromCmp >= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.from, to) <= 0 : cmp(found.from, to) < 0))
{ return true }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (style || startStyle || endStyle || mustWrap || css) {
var fullStyle = style || ""
if (startStyle) { fullStyle += startStyle }
if (endStyle) { fullStyle += endStyle }
var token = elt("span", [content], fullStyle, css)
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if ((inner.mode.name == "xml" && inner.state.tagStart === null &&
(!inner.state.context && inner.state.tokenize.isInText)) ||
(state.md_inside && stream.current().indexOf(">") > -1)) {
state.f = inlineNormal;
state.block = blockNormal;
- Create a ticketCreate a ticket