Skip to content

Commit baeadd9

Browse files
committed
- Repositioning variable declarations
1 parent 33460e9 commit baeadd9

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

jquery.fullPage.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -107,33 +107,6 @@
107107

108108
var FP = $.fn.fullpage;
109109

110-
//flag to avoid very fast sliding for landscape sliders
111-
var slideMoving = false;
112-
113-
var isTouchDevice = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/);
114-
var isTouch = (('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0) || (navigator.maxTouchPoints));
115-
var container = $(this);
116-
var windowsHeight = $window.height();
117-
var isResizing = false;
118-
var isWindowFocused = true;
119-
var lastScrolledDestiny;
120-
var lastScrolledSlide;
121-
var canScroll = true;
122-
var scrollings = [];
123-
var controlPressed;
124-
var isScrollAllowed = {};
125-
isScrollAllowed.m = { 'up':true, 'down':true, 'left':true, 'right':true };
126-
isScrollAllowed.k = $.extend(true,{}, isScrollAllowed.m);
127-
var originals = $.extend(true, {}, options); //deep copy
128-
129-
//timeouts
130-
var resizeId;
131-
var afterSectionLoadsId;
132-
var afterSlideLoadsId;
133-
var scrollId;
134-
var scrollId2;
135-
var keydownId;
136-
137110
// Create some defaults, extending them with any options that were provided
138111
options = $.extend({
139112
//navigation
@@ -200,6 +173,33 @@
200173
onSlideLeave: null
201174
}, options);
202175

176+
//flag to avoid very fast sliding for landscape sliders
177+
var slideMoving = false;
178+
179+
var isTouchDevice = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/);
180+
var isTouch = (('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0) || (navigator.maxTouchPoints));
181+
var container = $(this);
182+
var windowsHeight = $window.height();
183+
var isResizing = false;
184+
var isWindowFocused = true;
185+
var lastScrolledDestiny;
186+
var lastScrolledSlide;
187+
var canScroll = true;
188+
var scrollings = [];
189+
var controlPressed;
190+
var isScrollAllowed = {};
191+
isScrollAllowed.m = { 'up':true, 'down':true, 'left':true, 'right':true };
192+
isScrollAllowed.k = $.extend(true,{}, isScrollAllowed.m);
193+
194+
//timeouts
195+
var resizeId;
196+
var afterSectionLoadsId;
197+
var afterSlideLoadsId;
198+
var scrollId;
199+
var scrollId2;
200+
var keydownId;
201+
var originals = $.extend(true, {}, options); //deep copy
202+
203203
displayWarnings();
204204

205205
//fixing bug in iScroll with links: https://github.com/cubiq/iscroll/issues/783
@@ -2913,4 +2913,4 @@
29132913
}
29142914
};
29152915

2916-
});
2916+
});

0 commit comments

Comments
 (0)