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

fix(WatchGroup): Handle watching on elements of an array correctly. #1067

Conversation

mvuksano
Copy link
Contributor

Closes #1046

@mvuksano mvuksano changed the title fix(WatchGroup): Handle watching elements of array that were removed. fix(WatchGroup): Handle watching on elements of an array correctly. May 26, 2014
@mvuksano mvuksano added cla: yes and removed cla: no labels May 26, 2014
@vicb vicb removed their assignment May 26, 2014
@jbdeboer
Copy link
Contributor

@chirayuk Could you review this PR?

@mvuksano
Copy link
Contributor Author

mvuksano commented Jun 4, 2014

@chirayuk any feedback?

@chirayuk
Copy link
Contributor

Added a comment on the original issue #1046 (comment). (Sorry I missed the github PR notifications completely.)

describe('nested watching', () {
it('should not error when the first item is being watched and it is removed', () {
element = compile(
'<ul>'
Copy link
Contributor

Choose a reason for hiding this comment

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

You could make all of these raw string, (i.e. r'foo' instead of 'foo') and then you don't need to escape the "$" for "$index" in the string.

@chirayuk
Copy link
Contributor

Looks good.  Thanks.

@chirayuk
Copy link
Contributor

Merged as 8c271f7

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

Successfully merging this pull request may close these issues.

Watching inside a watched collection triggers a stacktrace
4 participants