XMLDummy.js 862 B

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