Skip to content

Commit

Permalink
Call super before using this in derived class
Browse files Browse the repository at this point in the history
  • Loading branch information
oozcitak committed Feb 8, 2018
1 parent f1c99a9 commit e524ae2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/XMLStreamWriter.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ module.exports = class XMLStreamWriter extends XMLWriterBase
# `options.allowEmpty` do not self close empty element tags
# `options.spacebeforeslash` add a space before the closing slash of empty elements
constructor: (stream, options) ->
@stream = stream
super options

@stream = stream

document: (doc) ->
# set a flag on the last root level node so that we don't insert a newline
# after it
Expand Down

0 comments on commit e524ae2

Please sign in to comment.