From dfef8d04ad6435f3217cb22fcc667cd7284b0192 Mon Sep 17 00:00:00 2001 From: Arun Ganesh Date: Mon, 21 Jul 2014 00:32:27 +0530 Subject: [PATCH] Defaults the settings object to self.settings Closes pending issue #5282. --- js/foundation/foundation.reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation/foundation.reveal.js b/js/foundation/foundation.reveal.js index ea4292fd1..c462d210f 100755 --- a/js/foundation/foundation.reveal.js +++ b/js/foundation/foundation.reveal.js @@ -117,7 +117,7 @@ // PATCH #1: fixing multiple keyup event trigger from single key press self.S('body').off('keyup.fndtn.reveal').on('keyup.fndtn.reveal', function ( event ) { var open_modal = self.S('[' + self.attr_name() + '].open'), - settings = open_modal.data(self.attr_name(true) + '-init'); + settings = open_modal.data(self.attr_name(true) + '-init') || self.settings ; // PATCH #2: making sure that the close event can be called only while unlocked, // so that multiple keyup.fndtn.reveal events don't prevent clean closing of the reveal window. if ( settings && event.which === 27 && settings.close_on_esc && !self.locked) { // 27 is the keycode for the Escape key -- 2.47.2