From bd65bb67e25a79b019d745b7262b2008ce2adb15 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 16 Nov 2016 01:59:39 +0100 Subject: incrementally verify denoms The denominations are not stored in a separate object store. --- node_modules/xmlbuilder/lib/XMLAttribute.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'node_modules/xmlbuilder/lib/XMLAttribute.js') diff --git a/node_modules/xmlbuilder/lib/XMLAttribute.js b/node_modules/xmlbuilder/lib/XMLAttribute.js index 51ccebe52..f6c6bd8d0 100644 --- a/node_modules/xmlbuilder/lib/XMLAttribute.js +++ b/node_modules/xmlbuilder/lib/XMLAttribute.js @@ -1,10 +1,11 @@ -// Generated by CoffeeScript 1.10.0 +// Generated by CoffeeScript 1.9.1 (function() { - var XMLAttribute; + var XMLAttribute, create; + + create = require('lodash/create'); module.exports = XMLAttribute = (function() { function XMLAttribute(parent, name, value) { - this.options = parent.options; this.stringify = parent.stringify; if (name == null) { throw new Error("Missing attribute name of element " + parent.name); @@ -17,11 +18,11 @@ } XMLAttribute.prototype.clone = function() { - return Object.create(this); + return create(XMLAttribute.prototype, this); }; - XMLAttribute.prototype.toString = function(options) { - return this.options.writer.set(options).attribute(this); + XMLAttribute.prototype.toString = function(options, level) { + return ' ' + this.name + '="' + this.value + '"'; }; return XMLAttribute; -- cgit v1.2.3