Repositorio del curso CCOM4030 el semestre B91 del proyecto kilometro0

12345678910111213141516171819202122232425262728293031
  1. // Generated by CoffeeScript 1.12.7
  2. (function() {
  3. var XMLAttribute;
  4. module.exports = XMLAttribute = (function() {
  5. function XMLAttribute(parent, name, value) {
  6. this.options = parent.options;
  7. this.stringify = parent.stringify;
  8. if (name == null) {
  9. throw new Error("Missing attribute name of element " + parent.name);
  10. }
  11. if (value == null) {
  12. throw new Error("Missing attribute value for attribute " + name + " of element " + parent.name);
  13. }
  14. this.name = this.stringify.attName(name);
  15. this.value = this.stringify.attValue(value);
  16. }
  17. XMLAttribute.prototype.clone = function() {
  18. return Object.create(this);
  19. };
  20. XMLAttribute.prototype.toString = function(options) {
  21. return this.options.writer.set(options).attribute(this);
  22. };
  23. return XMLAttribute;
  24. })();
  25. }).call(this);