Merge pull request #8333 from openlayers/cleanup

Fix wrong return type for readHref function
This commit is contained in:
Frédéric Junod
2018-07-01 07:31:56 +02:00
committed by GitHub

View File

@@ -12,7 +12,7 @@ const NAMESPACE_URI = 'http://www.w3.org/1999/xlink';
/**
* @param {Node} node Node.
* @return {boolean|undefined} Boolean.
* @return {string|undefined} href.
*/
export function readHref(node) {
return node.getAttributeNS(NAMESPACE_URI, 'href');