diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-10 14:57:00 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-10 14:57:00 +0100 |
commit | 3409a2150705f679238300c56c05ea144e9ad7bd (patch) | |
tree | fbe8d57ca2ba41f46ae99b4f23a8193990205300 /src/flatten.js | |
parent | c4d93783496e9a3e67c157d63c4a94dc654120bf (diff) | |
download | svg.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.js | 2 |
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) }) |