Skip to content
Browse files

* tidy up marginTop variable declaration

  • Loading branch information...
1 parent 84d9e00 commit ce1e43ccb573b9a82877236f46f780474e2278a1 ianmays committed Aug 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/jquery.scrollorama.js
View
4 js/jquery.scrollorama.js
@@ -30,7 +30,7 @@
// PRIVATE FUNCTIONS
function init() {
- var i, block, didScroll = false;
+ var i, block, didScroll, marginTop = false;
if (typeof scrollorama.settings.blocks === 'string') { scrollorama.settings.blocks = $(scrollorama.settings.blocks); }
// set browser prefix
@@ -43,7 +43,7 @@
$('body').css('position','relative');
for (i=0; i<scrollorama.settings.blocks.length; i++) {
block = scrollorama.settings.blocks.eq(i);
- var marginTop = block.css('margin-top');
+ marginTop = block.css('margin-top');
blocks.push({
block: block,
top: block.offset().top - (!Boolean(marginTop) ? parseInt(marginTop, 10) : 0),

0 comments on commit ce1e43c

Please sign in to comment.
Something went wrong with that request. Please try again.