This repository has been archived by the owner on Mar 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor mustache token parsing in advance of building instance-bindi…
…ng-map R=arv BUG= Review URL: https://codereview.appspot.com/10858044
- Loading branch information
Showing
1 changed file
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hey @rafaelw -- I noticed a somewhat subtle change this causes. bindOrDelegate will call the bindingDelegate and pass (model, path, name, node). In this case
node
is thereplacementBinding
andname
is the indexi
. Previously, the indexes were 0, 1, 2, 3, ... corresponding to the index of the mustache expr. Now they're 1, 3, 5, 9, ... which is a little bit different. I'm curious if this API change was intended or not.