@@ -103,8 +103,8 @@ var Text = function(parentEl) {
103
103
104
104
this . highlightIndentGuides = true ;
105
105
this . setHighlightIndentGuides = function ( highlight ) {
106
- if ( this . displayIndentGuides == false ) return false ;
107
- if ( this . highlightIndentGuides == highlight ) return false ;
106
+ if ( this . displayIndentGuides === false ) return false ;
107
+ if ( this . highlightIndentGuides === highlight ) return false ;
108
108
109
109
this . highlightIndentGuides = highlight ;
110
110
return highlight ;
@@ -449,7 +449,7 @@ var Text = function(parentEl) {
449
449
if ( bracketHighlight ) {
450
450
var ranges = this . session . $bracketHighlight . ranges ;
451
451
for ( var i = 0 ; i < ranges . length ; i ++ ) {
452
- if ( cursor . row != ranges [ i ] . start . row ) {
452
+ if ( cursor . row !== ranges [ i ] . start . row ) {
453
453
this . $highlightIndentGuideMarker . end = ranges [ i ] . start . row ;
454
454
if ( cursor . row > ranges [ i ] . start . row ) {
455
455
this . $highlightIndentGuideMarker . dir = - 1 ;
@@ -468,7 +468,7 @@ var Text = function(parentEl) {
468
468
for ( var i = cursor . row + 1 ; i < lines . length ; i ++ ) {
469
469
var line = lines [ i ] ;
470
470
var currentIndent = / ^ \s * / . exec ( line ) [ 0 ] . length ;
471
- if ( line != '' ) {
471
+ if ( line !== '' ) {
472
472
this . $highlightIndentGuideMarker . end = i ;
473
473
if ( currentIndent <= initialIndent ) break ;
474
474
}
@@ -486,7 +486,7 @@ var Text = function(parentEl) {
486
486
var childNodes = cell . element . childNodes ;
487
487
if ( childNodes . length > 0 ) {
488
488
for ( var j = 0 ; j < childNodes . length ; j ++ ) {
489
- if ( childNodes [ j ] . className && childNodes [ j ] . className . search ( "ace_indent-guide-active" ) != - 1 ) {
489
+ if ( childNodes [ j ] . className && childNodes [ j ] . className . search ( "ace_indent-guide-active" ) !== - 1 ) {
490
490
childNodes [ j ] . className = childNodes [ j ] . className . replace (
491
491
"ace_indent-guide-active" , "ace_indent-guide" ) ;
492
492
}
@@ -497,7 +497,7 @@ var Text = function(parentEl) {
497
497
498
498
this . $setIndentGuideActive = function ( cell , indentLevel ) {
499
499
var line = this . session . doc . getLine ( cell . row ) ;
500
- if ( line != "" ) {
500
+ if ( line !== "" ) {
501
501
var childNodes = cell . element . childNodes ;
502
502
if ( childNodes && childNodes [ indentLevel - 1 ] && childNodes [ indentLevel - 1 ] . className ) {
503
503
childNodes [ indentLevel - 1 ] . className = childNodes [ indentLevel - 1 ] . className . replace (
@@ -511,8 +511,8 @@ var Text = function(parentEl) {
511
511
var cells = this . $lines . cells ;
512
512
this . $clearActiveIndentGuide ( ) ;
513
513
var indentLevel = this . $highlightIndentGuideMarker . indentLevel ;
514
- if ( indentLevel != 0 ) {
515
- if ( this . $highlightIndentGuideMarker . dir == 1 ) {
514
+ if ( indentLevel !== 0 ) {
515
+ if ( this . $highlightIndentGuideMarker . dir === 1 ) {
516
516
for ( var i = 0 ; i < cells . length ; i ++ ) {
517
517
var cell = cells [ i ] ;
518
518
if ( this . $highlightIndentGuideMarker . end && cell . row >= this . $highlightIndentGuideMarker . start
0 commit comments