Skip to content

Commit

Permalink
Fix dimsemenov#1390 : 'TypeError Cannot read property 'updateScrollOf…
Browse files Browse the repository at this point in the history
…fset' of null'. Sometimes when image onLoad is not finished yet, and the user closes photoswipe, the shout('destroy') is called, but then after image onload finished it gives this error.
  • Loading branch information
Hovius authored and andi34 committed Aug 22, 2020
1 parent 985ba0b commit ac9842e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ var publicMethods = {

_stopAllAnimations();

_listeners = null;
_listeners = {};
},

/**
Expand Down

0 comments on commit ac9842e

Please sign in to comment.