From 1236dea4c55e9011d18bc9c61344dedc6b692cd0 Mon Sep 17 00:00:00 2001 From: Andrew Hankinson Date: Wed, 13 Aug 2014 19:47:06 -0400 Subject: [PATCH] Fixed: equality operators --- AppKit/CPTextView/CPTextView.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 5944bf661..794cd9e29 100755 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -636,7 +636,7 @@ var kDelegateRespondsTo_textShouldBeginEditing { var textStorageLength = [_layoutManager numberOfCharacters]; - if (textStorageLength == 0) + if (textStorageLength === 0) return CPMakeRange(0, 0); if (proposedRange.location >= textStorageLength) @@ -746,7 +746,7 @@ var kDelegateRespondsTo_textShouldBeginEditing inTextContainer:_textContainer fractionOfDistanceThroughGlyph:fraction]; - if (index == CPNotFound) + if (index === CPNotFound) index = _scrollingDownward ? CPMaxRange(oldRange) : oldRange.location; if (index > oldRange.location)