handlers Archive
-
Do looping through items and adding handlers to it hurt performance
Posted on October 6, 2011 | No CommentsDoes it hurt in performance when I loop through list-items and add a clickhandler to all separate items? The reason I do this is because I would only like to... -
How do I attach event handlers using jQuery only to newly added elements?
Posted on September 6, 2011 | No CommentsThere are objects where I have attached some events to. After some point, I create some more of those items and I want them also to be attached to the... -
Neatening up custom event handlers – remove need for ‘event’ parameter
Posted on August 12, 2011 | No CommentsI’m building some objects that will trigger custom events, and I’m using jQuery’s bind and trigger to manage this for me, like so: function MyObject() { var _this = this;...