diff options
author | wout <wout@impinc.co.uk> | 2012-12-21 17:28:17 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-21 17:28:17 +0100 |
commit | 5e4f748abffe48305e3d112e683d71cbec5155b3 (patch) | |
tree | 3c283536ea906a9260946168f6ad7b3891aa4f58 /src/doc.js | |
parent | b1516b2580dbdffd5ee68c75d4eb769b52faa100 (diff) | |
download | svg.js-5e4f748abffe48305e3d112e683d71cbec5155b3.tar.gz svg.js-5e4f748abffe48305e3d112e683d71cbec5155b3.zip |
Streamlined code
Diffstat (limited to 'src/doc.js')
-rw-r--r-- | src/doc.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |