diff options
Diffstat (limited to 'src/HtmlNode.js')
-rw-r--r-- | src/HtmlNode.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/HtmlNode.js b/src/HtmlNode.js index e7dae10..e04b731 100644 --- a/src/HtmlNode.js +++ b/src/HtmlNode.js @@ -1,6 +1,7 @@ /* global createElement */ SVG.HtmlNode = SVG.invent({ + inherit: SVG.EventTarget, create: function (element) { this.node = element }, @@ -19,6 +20,10 @@ SVG.HtmlNode = SVG.invent({ put: function (element, i) { this.add(element, i) return element + }, + + getEventTarget: function () { + return this.node } } }) |