mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-27 18:38:49 +00:00
Much more efficient test for first character of string
This commit is contained in:
1 parent
d191255a84
commit
6ea4aa0a66
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