Skip to content

Commit

Permalink
fix(runtime-generator): return symbol id string in compat mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kisenka committed Jul 24, 2017
1 parent d6f9f82 commit 7641af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runtime-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function runtimeGenerator(params) {
`var symbol = new SpriteSymbol(${stringifySymbol(symbol)})`,
'var result = sprite.add(symbol)',

generateExport(runtimeCompat ? '"#" + result.id' : 'symbol', esModule)
generateExport(runtimeCompat ? '"#" + symbol.id' : 'symbol', esModule)
].join(';\n');
}

Expand Down

0 comments on commit 7641af0

Please sign in to comment.