Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

remove $unboundFn by improving lexer/parser #731

Closed
IgorMinar opened this issue Jan 24, 2012 · 0 comments
Closed

remove $unboundFn by improving lexer/parser #731

IgorMinar opened this issue Jan 24, 2012 · 0 comments

Comments

@IgorMinar
Copy link
Contributor

currently the lexer will tokanize a.b.c() as a single token and return a getterFn that has c fn prebound to a.b. This was done to simplify the implementation of the parser and improve performance but it results in certain issues (e.g. watching a fn reference must be done via $unboundFn, see 7da2bdb).

It would be better if the lexer tokanized a.b.c() as a.b, ., c, where the . token would represent method invocation which parser would recognize and execute c in the context of a.b

IgorMinar added a commit to IgorMinar/angular.js that referenced this issue Jan 26, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant