From: Nahuel Cuesta Luengo Date: Thu, 14 Mar 2013 18:49:29 +0000 (-0300) Subject: Fixed wrong check for reveal css-top property. X-Git-Tag: v4.0.8~7^2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1904%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fixed wrong check for reveal css-top property. --- 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)); }