Skip to content

Commit

Permalink
fixes background unbind
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Buer committed Jan 13, 2016
1 parent 284cc89 commit a723174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imagesloaded.js
Expand Up @@ -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 ) {
Expand Down

0 comments on commit a723174

Please sign in to comment.