]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fixed wrong check for reveal css-top property. 1904/head
authorNahuel Cuesta Luengo <ncuesta@cespi.unlp.edu.ar>
Thu, 14 Mar 2013 18:49:29 +0000 (15:49 -0300)
committerNahuel Cuesta Luengo <ncuesta@cespi.unlp.edu.ar>
Thu, 14 Mar 2013 18:49:29 +0000 (15:49 -0300)
js/foundation/foundation.reveal.js

index 8f022a6e53206025717dedcf12e410c8158775d0..45c7237685050f5db7c7fbe6a5de9b599e439d16 100644 (file)
@@ -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));
       }