Merge pull request #8333 from openlayers/cleanup
Fix wrong return type for readHref function
This commit is contained in:
@@ -12,7 +12,7 @@ const NAMESPACE_URI = 'http://www.w3.org/1999/xlink';
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Node} node Node.
|
* @param {Node} node Node.
|
||||||
* @return {boolean|undefined} Boolean.
|
* @return {string|undefined} href.
|
||||||
*/
|
*/
|
||||||
export function readHref(node) {
|
export function readHref(node) {
|
||||||
return node.getAttributeNS(NAMESPACE_URI, 'href');
|
return node.getAttributeNS(NAMESPACE_URI, 'href');
|
||||||
|
|||||||
Reference in New Issue
Block a user