changed the method to attach event handlers from bind to delegate for
performance
Merge pull request #65 from haushinka2dx/bind-to-delegate

bind into delegate