Skip to content

Commit 57ff609

Browse files
committed
- Solved problem with compatibility for old version (<2.0)
1 parent bf43131 commit 57ff609

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

jquery.fullPage.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* fullPage 2.0
2+
* fullPage 2.0.1
33
* https://github.com/alvarotrigo/fullPage.js
44
* MIT licensed
55
*
@@ -131,7 +131,7 @@
131131
var slideMoving = false;
132132

133133
var isTablet = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|Windows Phone)/);
134-
var container = $(this).length? $(this): $('#superContainer'); // for compatibity reasons for fullpage < v2.0
134+
var container = $(this); // for compatibity reasons for fullpage < v2.0
135135
var windowsHeight = $(window).height();
136136
var isMoving = false;
137137
var isResizing = false;
@@ -156,6 +156,7 @@
156156
//for compatibity reasons for fullpage < v2.0
157157
else{
158158
$('body').wrapInner('<div id="superContainer" />');
159+
container = $('#superContainer');
159160
}
160161

161162
//creating the navigation dots

0 commit comments

Comments
 (0)