Much more efficient test for first character of string

This commit is contained in:
Aparajita Fishman
2011-08-18 00:51:37 -04:00
parent e98cd9e069
commit 16b52035c1
+1 -1
View File
@@ -362,7 +362,7 @@
- (id)valueForKeyPath:(CPString)aKeyPath
{
if (aKeyPath.indexOf("@") === 0)
if (aKeyPath.charAt(0) === "@")
{
var dotIndex = aKeyPath.indexOf("."),
operator,