Permalink
Browse files

Fix removal of error event handler in image loader

Thanks to Szymon Pasko for providing the fix.
  • Loading branch information...
1 parent 57042b2 commit 47f3440cb6d29bf2ac574f47e43c13c66759c5ed @joelfillmore joelfillmore committed Jan 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 PxLoaderImage.js
View
@@ -31,7 +31,7 @@ function PxLoaderImage(url, tags, priority) {
var removeEventHandlers = function() {
self.img.removeEventListener('load', onLoad);
self.img.removeEventListener('readystatechange', onReadyStateChange);
- self.img.removeEventListener('load', onError);
+ self.img.removeEventListener('error', onError);
};
this.start = function(pxLoader) {

0 comments on commit 47f3440

Please sign in to comment.