summaryrefslogtreecommitdiffstats
path: root/src/doc.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-21 17:28:17 +0100
committerwout <wout@impinc.co.uk>2012-12-21 17:28:17 +0100
commit5e4f748abffe48305e3d112e683d71cbec5155b3 (patch)
tree3c283536ea906a9260946168f6ad7b3891aa4f58 /src/doc.js
parentb1516b2580dbdffd5ee68c75d4eb769b52faa100 (diff)
downloadsvg.js-5e4f748abffe48305e3d112e683d71cbec5155b3.tar.gz
svg.js-5e4f748abffe48305e3d112e683d71cbec5155b3.zip
Streamlined code
Diffstat (limited to 'src/doc.js')
-rw-r--r--src/doc.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc.js b/src/doc.js
index e307d09..0fe5e21 100644
--- a/src/doc.js
+++ b/src/doc.js
@@ -2,11 +2,11 @@
SVG.Doc = function Doc(e) {
this.constructor.call(this, SVG.create('svg'));
- this.attr('xmlns', SVG.ns);
- this.attr('version', '1.1');
- this.attr('xlink', SVG.xlink, SVG.ns);
- this.defs();
+ this.
+ attr({ xmlns: SVG.ns, version: '1.1' }).
+ attr('xlink', SVG.xlink, SVG.ns).
+ defs();
if (typeof e == 'string')
e = document.getElementById(e);