mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-21 07:45:01 +00:00
Much more efficient test for first character of string
This commit is contained in:
1 parent
e98cd9e069
commit
16b52035c1
1 file changed
+1
-1
@@ -362,7 +362,7 @@
|
||||
|
||||
- (id)valueForKeyPath:(CPString)aKeyPath
|
||||
{
|
||||
if (aKeyPath.indexOf("@") === 0)
|
||||
if (aKeyPath.charAt(0) === "@")
|
||||
{
|
||||
var dotIndex = aKeyPath.indexOf("."),
|
||||
operator,
|
||||
|
||||
Reference in new issue
Block a user