So I\'m using a shorthand javascript if/else statement (I read somewhere they\'re called Ternary statements?)
if
else
this.dragHandle.hasClas
you can use && operator - second operand expression is executed only if first is true
&&
direction == "right" && slideOffset += $(".range-slide").width()
in my opinion if(conditon) expression is more readable than condition && expression
if(conditon) expression
condition && expression