Browse files

Merge pull request #351 from poursal/master

Hash change events not working in jquerymobile after PhotoSwipe.detatch
  • Loading branch information...
2 parents e905574 + 5eadd45 commit 237f649096d602c33bbdc4f1b77b96f3c19b9580 @billinghamj billinghamj committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/photoswipe.class.js
View
2 src/photoswipe.class.js
@@ -476,7 +476,7 @@
Util.Events.remove(window.document, 'keydown', this.keyDownHandler);
}
- if (this.isBackEventSupported && this.settings.backButtonHideEnabled){
+ if (this.isBackEventSupported && this.settings.backButtonHideEnabled && this.windowHashChangeHandler!=null){
Util.Events.remove(window, 'hashchange', this.windowHashChangeHandler);
}

0 comments on commit 237f649

Please sign in to comment.