summaryrefslogtreecommitdiffstats
path: root/src/data.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data.js')
-rw-r--r--src/data.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/data.js b/src/data.js
index f7fcd55..530986d 100644
--- a/src/data.js
+++ b/src/data.js
@@ -1,7 +1,9 @@
+import Element from './Element.js'
+import {extend} from './tools.js'
-SVG.extend(SVG.Element, {
+extend(Element, {
// Store data values on svg nodes
- data: function (a, v, r) {
+ data (a, v, r) {
if (typeof a === 'object') {
for (v in a) {
this.data(v, a[v])