mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-03 19:44:22 +00:00
_characterRangeForUn...: ternary operator
This commit is contained in:
1 parent
6230a65a79
commit
f5187b1533
1 file changed
+1
-4
@@ -1567,10 +1567,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
|
||||
if (peek !== CPNotFound)
|
||||
{
|
||||
if (lastIndex === CPNotFound)
|
||||
lastIndex = peek;
|
||||
else
|
||||
lastIndex = MAX(lastIndex, peek);
|
||||
lastIndex = (lastIndex === CPNotFound ? peek : MAX(lastIndex, peek));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user