Files
openlayers/src/ol/format/XLink.js
Tim Schaub ad62739a6e Use blocked scoped variables
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00

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;