See this jsfiddle that illustrates the problem: http://jsfiddle.net/3ma7a/1/ The reason is because our event handler is attached to the document and we just pass event.currentTarget instead of properly finding the right one.