Using svg.js, how do you access element from custom event?
myCircle.on('someEvent', function(event) {
var circleX = event.x(); // event.x is not a function
circleX = event.target.x() // event.x is not a function
circleX = event.target.x() // event.target.x is not a function
circleX = this.x() // this is undefined
});
Using this. in click
event works, but cannot use this. in custome events...
Any ideas?