aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/element.js2
-rw-r--r--src/group.js2
-rw-r--r--src/text.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/element.js b/src/element.js
index 7da6e25..e7161c0 100644
--- a/src/element.js
+++ b/src/element.js
@@ -101,7 +101,7 @@ SVG.extend(SVG.Element, {
return this.parent != null ? this.parent.remove(this) : void 0;
},
// Get parent document
- parentDoc: function() {
+ doc: function() {
return this._parent(SVG.Doc);
},
// Set svg element attribute
diff --git a/src/group.js b/src/group.js
index da44e27..df97c3e 100644
--- a/src/group.js
+++ b/src/group.js
@@ -11,7 +11,7 @@ SVG.extend(SVG.G, SVG.Container);
SVG.extend(SVG.G, {
defs: function() {
- return this.parentDoc().defs();
+ return this.doc().defs();
}
}); \ No newline at end of file
diff --git a/src/text.js b/src/text.js
index 985fcbc..ecd8811 100644
--- a/src/text.js
+++ b/src/text.js
@@ -22,7 +22,7 @@ SVG.extend(SVG.Text, {
var index, length, tspan,
style = this._style(),
- parent = this.parentDoc(),
+ parent = this.doc(),
lines = text.split("\n"),
size = this.style['font-size'];