Skip to content

Commit

Permalink
Change syntax of exports
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinPealing committed Nov 16, 2017
1 parent 365783f commit 30e43fa
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ function setDefaults(options, defaults) {
return ret;
}

module.exports.drawLines = drawSvgLines;
module.exports.showPlan = showPlan;
export { drawSvgLines as drawLines, showPlan }
2 changes: 1 addition & 1 deletion src/svgLines.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ function drawArrow(draw, from, to, bendX) {

}

module.exports.drawSvgLines = drawSvgLines;
export { drawSvgLines }
2 changes: 1 addition & 1 deletion src/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ function hideTooltip() {
}
}

module.exports.initTooltip = initTooltip;
export { initTooltip }
2 changes: 1 addition & 1 deletion src/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ function setContentsUsingXslt(container, xml, xslt) {
}
}

module.exports.setContentsUsingXslt = setContentsUsingXslt;
export { setContentsUsingXslt }
3 changes: 1 addition & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ function hasClass(element, cls) {
return (' ' + element.className + ' ').indexOf(' ' + cls + ' ') > -1;
}

module.exports.findAncestor = findAncestor;
module.exports.hasClass = hasClass;
export { findAncestor, hasClass }
6 changes: 1 addition & 5 deletions test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,4 @@ function showPlan(planXml) {
return container;
}

module.exports.getProperty = getProperty;
module.exports.findNodeById = findNodeById;
module.exports.getToolTipSection = getToolTipSection;
module.exports.getDescription = getDescription;
module.exports.showPlan = showPlan;
export { getProperty, findNodeById, getToolTipSection, getDescription, showPlan }

0 comments on commit 30e43fa

Please sign in to comment.