aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
authorPatrick Klingemann <patrick.klingemann@gmail.com>2014-06-09 13:59:53 -0400
committerPatrick Klingemann <patrick.klingemann@gmail.com>2014-06-09 13:59:53 -0400
commitc13717a8d8d85e5d1d408e27a6db881fe773cc04 (patch)
tree6693bb631dab6a126fdc214d537856c4ae9ac8f7 /src/element.js
parent63d88467de624a48680d68a57752273934f13534 (diff)
downloadsvg.js-c13717a8d8d85e5d1d408e27a6db881fe773cc04.tar.gz
svg.js-c13717a8d8d85e5d1d408e27a6db881fe773cc04.zip
toggleClass returns the svg instance
Diffstat (limited to 'src/element.js')
-rwxr-xr-xsrc/element.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/element.js b/src/element.js
index 2942831..9c52dd0 100755
--- a/src/element.js
+++ b/src/element.js
@@ -382,6 +382,7 @@ SVG.Element = SVG.invent({
} else {
this.addClass(className)
}
+ return this
}
// Private: find svg parent by instance
, _parent: function(parent) {