Skip to content

Commit

Permalink
Merge pull request #169 from MaffooBristol/patch-1
Browse files Browse the repository at this point in the history
Unbinding resize events when the tour is cancelled
  • Loading branch information
mrsweaters committed Jan 23, 2014
2 parents 9685a1e + 57173a0 commit 9e5ff47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jquery.joyride-2.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down

0 comments on commit 9e5ff47

Please sign in to comment.