(parent, version, encoding, standalone)
| 30475 | extend(XMLDeclaration, superClass); |
| 30476 | |
| 30477 | function XMLDeclaration(parent, version, encoding, standalone) { |
| 30478 | var ref; |
| 30479 | XMLDeclaration.__super__.constructor.call(this, parent); |
| 30480 | if (isObject(version)) { |
| 30481 | ref = version, version = ref.version, encoding = ref.encoding, standalone = ref.standalone; |
| 30482 | } |
| 30483 | if (!version) { |
| 30484 | version = '1.0'; |
| 30485 | } |
| 30486 | this.version = this.stringify.xmlVersion(version); |
| 30487 | if (encoding != null) { |
| 30488 | this.encoding = this.stringify.xmlEncoding(encoding); |
| 30489 | } |
| 30490 | if (standalone != null) { |
| 30491 | this.standalone = this.stringify.xmlStandalone(standalone); |
| 30492 | } |
| 30493 | } |
| 30494 | |
| 30495 | XMLDeclaration.prototype.toString = function(options) { |
| 30496 | return this.options.writer.set(options).declaration(this); |
nothing calls this directly
no test coverage detected