Skip to content

Commit

Permalink
Replace native Object.assign with lodash.assign
Browse files Browse the repository at this point in the history
  • Loading branch information
oozcitak committed Mar 29, 2016
1 parent e0e2ce5 commit 9972cff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.coffee
@@ -1,4 +1,5 @@
isFunction = require 'lodash/isFunction'
assign = require 'lodash/assign'

XMLDocument = require './XMLDocument'
XMLDocumentCB = require './XMLDocumentCB'
Expand Down Expand Up @@ -38,7 +39,7 @@ module.exports.create = (name, xmldec, doctype, options) ->
if not name?
throw new Error "Root element needs a name"

options = Object.assign { }, xmldec, doctype, options
options = assign { }, xmldec, doctype, options

# create the document node
doc = new XMLDocument(options)
Expand Down

0 comments on commit 9972cff

Please sign in to comment.