Skip to content

Commit b2c8669

Browse files
updated documentation of the getAttributes method
1 parent d1366e4 commit b2c8669

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ export const getAttribute = (attributes, name, context) => {
3232
isNil(attr.name)
3333
? // add support for spread attributes https://github.com/riot/route/issues/178
3434
Object.entries(attr.evaluate(context)).map(([key, value]) => ({
35-
// evaluate each value of the spread attribute and store it in the array
35+
// evaluate each value of the spread attribute and store it into the array
3636
name: key,
37+
// create a nested evaluate function pointing to the original value of the spread object
3738
evaluate: () => value,
3839
}))
3940
: attr,

0 commit comments

Comments
 (0)