XMLDummy.js 916 B

12345678910111213141516171819202122232425262728293031
  1. // Generated by CoffeeScript 1.12.7
  2. (function() {
  3. var NodeType, XMLDummy, XMLNode,
  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. NodeType = require('./NodeType');
  8. module.exports = XMLDummy = (function(superClass) {
  9. extend(XMLDummy, superClass);
  10. function XMLDummy(parent) {
  11. XMLDummy.__super__.constructor.call(this, parent);
  12. this.type = NodeType.Dummy;
  13. }
  14. XMLDummy.prototype.clone = function() {
  15. return Object.create(this);
  16. };
  17. XMLDummy.prototype.toString = function(options) {
  18. return '';
  19. };
  20. return XMLDummy;
  21. })(XMLNode);
  22. }).call(this);