From 22013fc1d26417d68e1c20684bbe4491c11f5a1b Mon Sep 17 00:00:00 2001 From: Nahuel Cuesta Luengo Date: Thu, 14 Mar 2013 15:49:29 -0300 Subject: [PATCH] Fixed wrong check for reveal css-top property. --- 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 8f022a6e5..45c723768 100644 --- a/js/foundation/foundation.reveal.js +++ b/js/foundation/foundation.reveal.js @@ -90,7 +90,7 @@ var open_modal = $('.reveal-modal.open'); - if (!modal.data('css-top')) { + if (typeof modal.data('css-top') === 'undefined') { modal.data('css-top', parseInt(modal.css('top'), 10)) .data('offset', this.cache_offset(modal)); } -- 2.47.3