From f009ee0dcea138fef9f8096603b4883b3875cb07 Mon Sep 17 00:00:00 2001 From: Dan Millar Date: Sun, 4 May 2014 11:31:38 +0100 Subject: [PATCH] Allow false to be passed as abort_on_close option Before as it was only looking to see if the abort var was defined or not you were unable to set the abort_on_close option to false and have the post callbacks trigger. --- js/foundation/foundation.joyride.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation/foundation.joyride.js b/js/foundation/foundation.joyride.js index 3d610c13b..243e469eb 100644 --- a/js/foundation/foundation.joyride.js +++ b/js/foundation/foundation.joyride.js @@ -827,7 +827,7 @@ $('.joyride-modal-bg').hide(); this.settings.$current_tip.hide(); - if (typeof abort === 'undefined') { + if (typeof abort === 'undefined' || abort === false) { this.settings.post_step_callback(this.settings.$li.index(), this.settings.$current_tip); this.settings.post_ride_callback(this.settings.$li.index(), this.settings.$current_tip); } -- 2.47.2