mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-03 09:23:40 +00:00
make storage length zero more tolerant
This commit is contained in:
@@ -636,7 +636,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
{
|
||||
var textStorageLength = [_layoutManager numberOfCharacters];
|
||||
|
||||
if (textStorageLength === 0)
|
||||
if (!textStorageLength)
|
||||
return CPMakeRange(0, 0);
|
||||
|
||||
if (proposedRange.location >= textStorageLength)
|
||||
|
||||
Reference in New Issue
Block a user