diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-27 17:36:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-27 17:36:13 +0200 |
commit | 5f466137ad6ac596600e3ff53c9b786815398445 (patch) | |
tree | f914c221874f0b16bf3def7ac01d59d1a99a3b0b /node_modules/xmlbuilder/lib/XMLText.js | |
parent | c9f5ac8e763eda19aa0564179300cfff76785435 (diff) |
node_modules, clean up package.json
Diffstat (limited to 'node_modules/xmlbuilder/lib/XMLText.js')
-rw-r--r-- | node_modules/xmlbuilder/lib/XMLText.js | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/node_modules/xmlbuilder/lib/XMLText.js b/node_modules/xmlbuilder/lib/XMLText.js deleted file mode 100644 index c4f27ab49..000000000 --- a/node_modules/xmlbuilder/lib/XMLText.js +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by CoffeeScript 1.9.1 -(function() { - var XMLNode, XMLText, create, - extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - hasProp = {}.hasOwnProperty; - - create = require('lodash/create'); - - XMLNode = require('./XMLNode'); - - module.exports = XMLText = (function(superClass) { - extend(XMLText, superClass); - - function XMLText(parent, text) { - XMLText.__super__.constructor.call(this, parent); - if (text == null) { - throw new Error("Missing element text"); - } - this.value = this.stringify.eleText(text); - } - - XMLText.prototype.clone = function() { - return create(XMLText.prototype, this); - }; - - XMLText.prototype.toString = function(options, level) { - var indent, newline, offset, pretty, r, ref, ref1, ref2, space; - pretty = (options != null ? options.pretty : void 0) || false; - indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' '; - offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0; - newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\n'; - level || (level = 0); - space = new Array(level + offset + 1).join(indent); - r = ''; - if (pretty) { - r += space; - } - r += this.value; - if (pretty) { - r += newline; - } - return r; - }; - - return XMLText; - - })(XMLNode); - -}).call(this); |