Skip to content

Commit

Permalink
fix(cli): fixed code erorr when have - in key
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Sep 6, 2018
1 parent 240884a commit 174b5ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/core/plugins/scriptInjection.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const genRel = (rel) => {
handlerStr += `'${i}': {`;
let events = Object.keys(handler);
events.forEach((e, p) => {
handlerStr += `${e}: ${handler[e]}`;
handlerStr += `'${e}': ${handler[e]}`;
if (p !== events.length - 1) {
handlerStr += ',';
}
Expand Down

0 comments on commit 174b5ba

Please sign in to comment.