Skip to content

Commit

Permalink
Fix error on empty file, fixes svg#810
Browse files Browse the repository at this point in the history
  • Loading branch information
GreLI committed Oct 22, 2017
1 parent 6f9fdb1 commit f044d25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/svgo/svg2js.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var config = {
module.exports = function(data, callback) {

var sax = SAX.parser(config.strict, config),
root = new JSAPI({ elem: '#document' }),
root = new JSAPI({ elem: '#document', content: [] }),
current = root,
stack = [root],
textContext = null,
Expand Down

0 comments on commit f044d25

Please sign in to comment.