Skip to content

resolutionStrategy target: fails if no targets provided to parent group #2

@shans

Description

@shans

see web-animation-test.html.

It should be possible to set up a complex animation template with child nodes targeting specific element ids, then trigger the whole thing with an animate call that has an empty element list:

var a = AnimTemplate(..., "target: a");
var b = ParAnimGroupTemplate([a, ...]);
b.animate([], 0);

This used to work because [] was erroneously treated as [Array(0)]. Now it doesn't, because the group's __animate method iterates over the targets (of which there are none) even though those targets don't get used lower down.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions