Skip to content
Browse files

Merge pull request #169 from MaffooBristol/patch-1

Unbinding resize events when the tour is cancelled
  • Loading branch information...
2 parents 9685a1e + 57173a0 commit 9e5ff47f50557d1a541da5562e969b513323da9c @mrsweaters mrsweaters committed Jan 22, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 jquery.joyride-2.1.js
View
6 jquery.joyride-2.1.js
@@ -825,6 +825,12 @@
end : function (isAborted) {
isAborted = isAborted || false;
+
+ // Unbind resize events.
+ if (isAborted) {
+ settings.$window.unbind('resize.joyride');
+ }
+
if (settings.cookieMonster) {
$.cookie(settings.cookieName, 'ridden', { expires: 365, domain: settings.cookieDomain, path: settings.cookiePath });
}

0 comments on commit 9e5ff47

Please sign in to comment.
Something went wrong with that request. Please try again.