summaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-01-15 16:22:10 +0100
committerwout <wout@impinc.co.uk>2013-01-15 16:22:10 +0100
commit6ae497706394d96b87e045afa8c7260790c4a7f1 (patch)
tree02f8859c53d306c3250df61ad7ef11ca005b4ea4 /dist/svg.js
parent8b253f88504cdaec23be84564a5a6781ed7a7066 (diff)
downloadsvg.js-6ae497706394d96b87e045afa8c7260790c4a7f1.tar.gz
svg.js-6ae497706394d96b87e045afa8c7260790c4a7f1.zip
Removed obsolete code
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js63
1 files changed, 33 insertions, 30 deletions
diff --git a/dist/svg.js b/dist/svg.js
index 43f9291..fb9e21b 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -1,4 +1,4 @@
-/* svg.js v0.1-85-g2a4e6b7 - svg container element fx event group arrange defs mask pattern gradient doc shape wrap rect ellipse poly path image text nested sugar - svgjs.com/license */
+/* svg.js v0.1-86-g8b253f8 - svg container element fx event group arrange defs mask pattern gradient doc shape wrap rect ellipse poly path image text nested sugar - svgjs.com/license */
(function() {
this.svg = function(element) {
@@ -1366,35 +1366,39 @@
});
- SVG.extend(SVG.G, {
- // Move using translate
- move: function(x, y) {
- return this.transform({
- x: x,
- y: y
- });
- }
-
- });
+ if (SVG.G) {
+ SVG.extend(SVG.G, {
+ // Move using translate
+ move: function(x, y) {
+ return this.transform({
+ x: x,
+ y: y
+ });
+ }
- SVG.extend(SVG.Text, {
- // Set font
- font: function(o) {
- var key, attr = {};
-
- for (key in o)
- key == 'leading' ?
- attr[key] = o[key] :
- key == 'anchor' ?
- attr['text-anchor'] = o[key] :
- _styleAttr.indexOf(key) > -1 ?
- attr['font-'+ key] = o[key] :
- void 0;
-
- return this.attr(attr).text(this.content);
- }
-
- });
+ });
+ }
+
+ if (SVG.Text) {
+ SVG.extend(SVG.Text, {
+ // Set font
+ font: function(o) {
+ var key, attr = {};
+
+ for (key in o)
+ key == 'leading' ?
+ attr[key] = o[key] :
+ key == 'anchor' ?
+ attr['text-anchor'] = o[key] :
+ _styleAttr.indexOf(key) > -1 ?
+ attr['font-'+ key] = o[key] :
+ void 0;
+
+ return this.attr(attr).text(this.content);
+ }
+
+ });
+ }
if (SVG.FX) {
@@ -1418,7 +1422,6 @@
}
-
}).call(this);