| // Generated by CoffeeScript 1.12.7 | |
| (function() { | |
| var XMLAttribute; | |
| module.exports = XMLAttribute = (function() { | |
| function XMLAttribute(parent, name, value) { | |
| this.options = parent.options; | |
| this.stringify = parent.stringify; | |
| this.parent = parent; | |
| if (name == null) { | |
| throw new Error("Missing attribute name. " + this.debugInfo(name)); | |
| } | |
| if (value == null) { | |
| throw new Error("Missing attribute value. " + this.debugInfo(name)); | |
| } | |
| this.name = this.stringify.attName(name); | |
| this.value = this.stringify.attValue(value); | |
| } | |
| XMLAttribute.prototype.clone = function() { | |
| return Object.create(this); | |
| }; | |
| XMLAttribute.prototype.toString = function(options) { | |
| return this.options.writer.set(options).attribute(this); | |
| }; | |
| XMLAttribute.prototype.debugInfo = function(name) { | |
| name = name || this.name; | |
| if (name == null) { | |
| return "parent: <" + this.parent.name + ">"; | |
| } else { | |
| return "attribute: {" + name + "}, parent: <" + this.parent.name + ">"; | |
| } | |
| }; | |
| return XMLAttribute; | |
| })(); | |
| }).call(this); | |
Xet Storage Details
- Size:
- 1.15 kB
- Xet hash:
- ad4281d981cd8e8895c92e8ed13fdd9766fcb7fc07f88509a1302bb3150de260
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.