kopia lustrzana https://github.com/backface/turtlestitch
removed an obsolete "to do" comment in xml.js
rodzic
ca6ea08e2d
commit
31c7cee9e7
|
@ -7,7 +7,7 @@
|
||||||
written by Jens Mönig
|
written by Jens Mönig
|
||||||
jens@moenig.org
|
jens@moenig.org
|
||||||
|
|
||||||
Copyright (C) 2018 by Jens Mönig
|
Copyright (C) 2020 by Jens Mönig
|
||||||
|
|
||||||
This file is part of Snap!.
|
This file is part of Snap!.
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.xml = '2018-November-12';
|
modules.xml = '2020-April-20';
|
||||||
|
|
||||||
// Declarations
|
// Declarations
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ XML_Element.prototype.init = function (tag, contents, parent) {
|
||||||
|
|
||||||
// XML_Element DOM navigation: (aside from what's inherited from Node)
|
// XML_Element DOM navigation: (aside from what's inherited from Node)
|
||||||
|
|
||||||
XML_Element.prototype.require = function (tagName, fallback) { // +++
|
XML_Element.prototype.require = function (tagName, fallback) {
|
||||||
// answer the first direct child with the specified tagName.
|
// answer the first direct child with the specified tagName.
|
||||||
// if it doesn't exist execute the fallback function or return the
|
// if it doesn't exist execute the fallback function or return the
|
||||||
// fallback value, otherwise throw an error
|
// fallback value, otherwise throw an error
|
||||||
|
|
Ładowanie…
Reference in New Issue