summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/elements/Dom.js4
-rw-r--r--src/elements/Svg.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/elements/Dom.js b/src/elements/Dom.js
index ef51ad6..c523687 100644
--- a/src/elements/Dom.js
+++ b/src/elements/Dom.js
@@ -31,8 +31,8 @@ export default class Dom extends EventTarget {
element = makeInstance(element)
// If non-root svg nodes are added we have to remove their namespaces
- if (element.removeNamespaces && this.node instanceof globals.window.SVGElement) {
- element.removeNamespaces()
+ if (element.removeNamespace && this.node instanceof globals.window.SVGElement) {
+ element.removeNamespace()
}
if (i == null) {
diff --git a/src/elements/Svg.js b/src/elements/Svg.js
index 6672919..8699327 100644
--- a/src/elements/Svg.js
+++ b/src/elements/Svg.js
@@ -40,7 +40,7 @@ export default class Svg extends Container {
.attr('xmlns:svgjs', svgjs, xmlns)
}
- removeNamespaces () {
+ removeNamespace () {
return this.attr({ xmlns: null, version: null })
.attr('xmlns:xlink', null, xmlns)
.attr('xmlns:svgjs', null, xmlns)