Skip to content

Commit b6b1ec8

Browse files
committed
Merge pull request #218 from mark-buer/background-unbind-fix
🐞 fixes background unbind
2 parents 284cc89 + a723174 commit b6b1ec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imagesloaded.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ Background.prototype.check = function() {
336336
};
337337

338338
Background.prototype.unbindEvents = function() {
339-
this.img.addEventListener( 'load', this );
340-
this.img.addEventListener( 'error', this );
339+
this.img.removeEventListener( 'load', this );
340+
this.img.removeEventListener( 'error', this );
341341
};
342342

343343
Background.prototype.confirm = function( isLoaded, message ) {

0 commit comments

Comments
 (0)