Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,8 @@ function getLastExpression(code) {
};
}

let id = 0;

function parse({ htmlRoot, js }) {
let result = {
// increment the id every time we call parse, so we can use
// it for react keys, when iterating over targets
id: ++id,
};
let result = {};

try {
const context = Object.assign({}, queries, {
Expand Down Expand Up @@ -138,6 +132,4 @@ function parse({ htmlRoot, js }) {
return result;
}

export default {
parse,
};
export default { parse };