Permalink
Browse files

Fix removeEventListener for older versions of Firefox, closes #5

Thanks to gregorybolkenstijn for providing the fix.
  • Loading branch information...
1 parent 63f9414 commit 5fc7d9d1aee5adcfd1c599aca44dab1635f1f18a @joelfillmore joelfillmore committed Feb 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 PxLoaderImage.js
View
2 PxLoaderImage.js
@@ -85,7 +85,7 @@ function PxLoaderImage(url, tags, priority) {
// cross-browser event un-binding
this.unbind = function(eventName, eventHandler) {
if (self.img.removeEventListener) {
- self.img.removeEventListener(eventName, eventHandler);
+ self.img.removeEventListener(eventName, eventHandler, false);
} else if (self.img.detachEvent) {
self.img.detachEvent('on'+eventName, eventHandler);
}

0 comments on commit 5fc7d9d

Please sign in to comment.