aboutsummaryrefslogtreecommitdiffstats
path: root/src/flatten.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-10 14:57:00 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-10 14:57:00 +0100
commit3409a2150705f679238300c56c05ea144e9ad7bd (patch)
treefbe8d57ca2ba41f46ae99b4f23a8193990205300 /src/flatten.js
parentc4d93783496e9a3e67c157d63c4a94dc654120bf (diff)
downloadsvg.js-3409a2150705f679238300c56c05ea144e9ad7bd.tar.gz
svg.js-3409a2150705f679238300c56c05ea144e9ad7bd.zip
update specs, fix mistakes, include flatten.js to dist
Diffstat (limited to 'src/flatten.js')
-rw-r--r--src/flatten.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flatten.js b/src/flatten.js
index 2c62733..e3742aa 100644
--- a/src/flatten.js
+++ b/src/flatten.js
@@ -7,7 +7,7 @@ SVG.extend(SVG.Parent, {
this.each(function(){
if(this instanceof SVG.Defs) return this
- if(this instanceof SVG.Parent) return this.ungroup(parent, depth-1)
+ if(this instanceof SVG.Parent) return this.flatten(parent, depth-1)
return this.toParent(parent)
})