_characterRangeForUn...: ternary operator

This commit is contained in:
daboe01 committed 2014-07-20 11:44:03 +02:00
1 parent 6230a65a79
commit f5187b1533
1 file changed
+1 -4
+1 -4
View File
@@ -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));
}
}