summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-04 21:25:32 +1000
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-04 21:25:32 +1000
commit8a6b109353d1e3ff24b996ffa3f412fb2f94de90 (patch)
tree916b489b3877ce27c44b7efe3d0851216d616986 /src
parent7547a6a45818bcfefd545da4697196b81bd8da5b (diff)
downloadsvg.js-8a6b109353d1e3ff24b996ffa3f412fb2f94de90.tar.gz
svg.js-8a6b109353d1e3ff24b996ffa3f412fb2f94de90.zip
renamed removeNamespace()
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)