Skip to content

#each doesn't loop through keys with . in them correctly #14

@justinbmeyer

Description

@justinbmeyer
x = new can.Map({ "foo.bar": "baz" });
y = can.stache(`{{#each this}}{{%key}} {{this}}<br>{{/each}}`)
$('<div>').append(y(x)).html(); 
// '\x3C!--Observation<{{#each this}}>-->foo.bar <br>\x3C!--/Observation<{{#each this}}>-->'

The value of "baz" won't be printed

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions