d82996d2 by Michael Richards

Merge pull request #251 from MiguelCastillo/master

Adding charAt in keypath parse instead of array operator
2 parents 8e267cc5 29a08d51
......@@ -8,7 +8,8 @@ class Rivets.KeypathParser
tokens = []
current = {interface: root, path: ''}
for char in keypath
for index in [0...keypath.length] by 1
char = keypath.charAt index
if char in interfaces
tokens.push current
current = {interface: char, path: ''}
......