Named exports from ol/format/XLink

This commit is contained in:
Frederic Junod
2018-02-14 10:47:25 +01:00
parent 4f358f018b
commit 1953d41d0d
4 changed files with 11 additions and 13 deletions
+2 -4
View File
@@ -1,7 +1,6 @@
/**
* @module ol/format/XLink
*/
const XLink = {};
/**
@@ -15,7 +14,6 @@ const NAMESPACE_URI = 'http://www.w3.org/1999/xlink';
* @param {Node} node Node.
* @return {boolean|undefined} Boolean.
*/
XLink.readHref = function(node) {
export function readHref(node) {
return node.getAttributeNS(NAMESPACE_URI, 'href');
};
export default XLink;
}