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

Comments for query.dart #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jbdeboer
Copy link

@jbdeboer jbdeboer commented Sep 4, 2014

Review on Reviewable

@@ -34,5 +35,6 @@ library angular.directive_injector.query;
*
* DESIGN: https://docs.google.com/document/d/1d-yxmxMVqZHHadvxQaC2CCvcAR17JUQ1Qs4RT6Rwp6Y
*/
// COMMENT(deboer): This should by a List isn't of an UnmodifieableListView since the set of elements can change over the course of the Query's life time.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think unmodifiable is the right API for clients. While internally (in the DirectiveInjector) it is modifiable, we don't want the clients to muck with it.

I would argue that providing DOM-consistent indexing might be too hard on first iteration (given ng-if, ng-repeat might wildly rearrange the Dom elements), and would just give one method forEach.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants