MCPcopy Create free account
hub / github.com/TruthHun/BookStack / XMLDeclaration

Function XMLDeclaration

static/word2md/mammoth.browser.js:30477–30493  ·  view source on GitHub ↗
(parent, version, encoding, standalone)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected