Repositorio del curso CCOM4030 el semestre B91 del proyecto Paz para la Mujer

XMLRaw.js 989B

1234567891011121314151617181920212223242526272829303132
  1. // Generated by CoffeeScript 1.12.7
  2. (function() {
  3. var XMLNode, XMLRaw,
  4. 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; },
  5. hasProp = {}.hasOwnProperty;
  6. XMLNode = require('./XMLNode');
  7. module.exports = XMLRaw = (function(superClass) {
  8. extend(XMLRaw, superClass);
  9. function XMLRaw(parent, text) {
  10. XMLRaw.__super__.constructor.call(this, parent);
  11. if (text == null) {
  12. throw new Error("Missing raw text");
  13. }
  14. this.value = this.stringify.raw(text);
  15. }
  16. XMLRaw.prototype.clone = function() {
  17. return Object.create(this);
  18. };
  19. XMLRaw.prototype.toString = function(options) {
  20. return this.options.writer.set(options).raw(this);
  21. };
  22. return XMLRaw;
  23. })(XMLNode);
  24. }).call(this);