Skip to content

Commit

Permalink
Merge pull request #218 from mark-buer/background-unbind-fix
Browse files Browse the repository at this point in the history
🐞 fixes background unbind
  • Loading branch information
desandro committed Jan 13, 2016
2 parents 284cc89 + a723174 commit b6b1ec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imagesloaded.js
Original file line number Diff line number Diff line change
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 b6b1ec8

Please sign in to comment.