Skip to content

Different behavior of {{@last}} when {{#each}} in {{#each}} #910

Closed
@zordius

Description

@zordius
  1. When {{#each}} on object, {{@last}} is undefined
  2. When {{#each}} on array, {{@last}} will be true in last run
  3. When {{#each}} inside another {{#each}} , {{@last}} will be set by outer {{#each}} and the behavior of 1 and 2 changed.

Sample code here:
http://jsfiddle.net/y4pd8qs2/1/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions