mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-13 12:07:08 +00:00
Fixed: equality operators
This commit is contained in:
1 parent
c5c46df613
commit
1236dea4c5
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user