Use extends and super for format/WMSCapabilities

This commit is contained in:
ahocevar
2018-07-17 17:59:53 +02:00
parent df89b0718a
commit a4abd990df
2 changed files with 7 additions and 20 deletions

View File

@@ -11,8 +11,11 @@ import {isDocument, isNode, parse} from '../xml.js';
*/
class XML {
/**
* @param {Document|Node|string} source Source.
* @return {Object} The parsed result.
* Read the source document.
*
* @param {Document|Node|string} source The XML source.
* @return {Object} An object representing the source.
* @api
*/
read(source) {
if (isDocument(source)) {