Permalink
Browse files

dataset easy bug fix

  • Loading branch information...
1 parent baad936 commit 9586e3b43f07298e6c849e3f940f6667d26368a7 @cubiq committed Oct 9, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/swipeview.js
View
@@ -40,6 +40,7 @@ var SwipeView = (function(){
for (i=-1; i<2; i++) {
div = document.createElement('div');
div.style.cssText = '-webkit-transform:translateZ(0);position:absolute;top:0;height:100%;width:100%;left:' + i*100 + '%';
+ if (!div.dataset) div.dataset = {};
div.dataset.pageIndex = i + 1;
div.dataset.upcomingPageIndex = div.dataset.pageIndex;

0 comments on commit 9586e3b

Please sign in to comment.