In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
22 lines
335 B
JavaScript
22 lines
335 B
JavaScript
/**
|
|
* @module ol/format/XLink
|
|
*/
|
|
const XLink = {};
|
|
|
|
|
|
/**
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
const NAMESPACE_URI = 'http://www.w3.org/1999/xlink';
|
|
|
|
|
|
/**
|
|
* @param {Node} node Node.
|
|
* @return {boolean|undefined} Boolean.
|
|
*/
|
|
XLink.readHref = function(node) {
|
|
return node.getAttributeNS(NAMESPACE_URI, 'href');
|
|
};
|
|
export default XLink;
|