mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Marko v3: Minor code cleanup for var-tag.js
This commit is contained in:
parent
14a448ae03
commit
9515cebe07
@ -2,9 +2,12 @@ module.exports = function nodeFactory(el, context) {
|
||||
var builder = context.builder;
|
||||
|
||||
var declarations = el.attributes.map((attr) => {
|
||||
var id = builder.identifier(attr.name);
|
||||
var init = attr.value;
|
||||
|
||||
return {
|
||||
id: builder.identifier(attr.name),
|
||||
init: builder.expression(attr.value)
|
||||
id: id,
|
||||
init
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user