diff --git a/imagesloaded.js b/imagesloaded.js index b8b5dc3..c2e4413 100644 --- a/imagesloaded.js +++ b/imagesloaded.js @@ -336,8 +336,8 @@ Background.prototype.check = function() { }; Background.prototype.unbindEvents = function() { - this.img.addEventListener( 'load', this ); - this.img.addEventListener( 'error', this ); + this.img.removeEventListener( 'load', this ); + this.img.removeEventListener( 'error', this ); }; Background.prototype.confirm = function( isLoaded, message ) {