Added event handling in Spine plugin.