diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-05-19 20:06:29 +1000 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-05-19 20:06:29 +1000 |
commit | 4ea53725a9021a136f6d81122dd78dc97a3e7da0 (patch) | |
tree | 7cd4b2aaa2c1e834aa61a669066f87d9746e7ef6 /src/elements/Element.js | |
parent | 47cffd9d5d9628c1729be291ee3a2f9b5651bd2c (diff) | |
download | svg.js-4ea53725a9021a136f6d81122dd78dc97a3e7da0.tar.gz svg.js-4ea53725a9021a136f6d81122dd78dc97a3e7da0.zip |
sorted method names
Diffstat (limited to 'src/elements/Element.js')
-rw-r--r-- | src/elements/Element.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/elements/Element.js b/src/elements/Element.js index bb11611..f39f777 100644 --- a/src/elements/Element.js +++ b/src/elements/Element.js @@ -71,12 +71,6 @@ export default class Element extends Dom { return this.y(new SVGNumber(y).plus(this.y())) } - // Get parent document - root () { - const p = this.parent(getClass(root)) - return p && p.root() - } - getEventHolder () { return this } @@ -121,6 +115,12 @@ export default class Element extends Dom { return m ? makeInstance(m[1]) : null } + // Get parent document + root () { + const p = this.parent(getClass(root)) + return p && p.root() + } + // set given data to the elements data property setData (o) { this.dom = o |