diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-05-13 13:32:48 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-05-13 13:32:48 +0200 |
commit | c0197097c4c1951ea5aa5392ff75473a7ae2e64d (patch) | |
tree | 37fb3893e368b43cbf45a73c769600db7c27a06a /src/container.js | |
parent | cdf8e1467f5c6e0d4f9d62a7ca64d93b87a448e0 (diff) | |
download | svg.js-c0197097c4c1951ea5aa5392ff75473a7ae2e64d.tar.gz svg.js-c0197097c4c1951ea5aa5392ff75473a7ae2e64d.zip |
fixed string parsing in viewbox (#483), specs `SVG.ViewBox`
Diffstat (limited to 'src/container.js')
-rw-r--r-- | src/container.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/container.js b/src/container.js index 33427c6..68adf93 100644 --- a/src/container.js +++ b/src/container.js @@ -7,21 +7,4 @@ SVG.Container = SVG.invent({ // Inherit from , inherit: SVG.Parent - // Add class methods -, extend: { - // Get the viewBox and calculate the zoom value - viewbox: function(v) { - if (arguments.length == 0) - // act as a getter if there are no arguments - return new SVG.ViewBox(this) - - // otherwise act as a setter - v = arguments.length == 1 ? - [v.x, v.y, v.width, v.height] : - [].slice.call(arguments) - - return this.attr('viewBox', v) - } - } - })
\ No newline at end of file |