Skip to content

Commit e396e60

Browse files
committed
- Removing extensions from unminified code
1 parent 8874181 commit e396e60

File tree

1 file changed

+0
-55
lines changed

1 file changed

+0
-55
lines changed

jquery.fullPage.js

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,6 @@
282282
* Defines the scrolling speed
283283
*/
284284
function setScrollingSpeed(value, type){
285-
if(type !== 'internal' && options.fadingEffect && FP.fadingEffect ){
286-
FP.fadingEffect.update(value);
287-
}
288285
setVariableState('scrollingSpeed', value, type);
289286
};
290287

@@ -492,10 +489,6 @@
492489
$(SECTION_NAV_SEL).hide();
493490
$body.addClass(RESPONSIVE);
494491
$.isFunction( options.afterResponsive ) && options.afterResponsive.call( container, active);
495-
496-
if(options.responsiveSlides && FP.responsiveSlides){
497-
FP.responsiveSlides.toSections();
498-
}
499492
}
500493
}
501494
else if(isResponsive){
@@ -504,10 +497,6 @@
504497
$(SECTION_NAV_SEL).show();
505498
$body.removeClass(RESPONSIVE);
506499
$.isFunction( options.afterResponsive ) && options.afterResponsive.call( container, active);
507-
508-
if(options.responsiveSlides && FP.responsiveSlides){
509-
FP.responsiveSlides.toSlides();
510-
}
511500
}
512501
};
513502

@@ -550,14 +539,6 @@
550539
FP.getFullpageData = getFullpageData;
551540
FP.destroy = destroy;
552541

553-
//Loading extensions
554-
loadExtension('continuousHorizontal');
555-
loadExtension('scrollHorizontally');
556-
loadExtension('resetSliders');
557-
loadExtension('interlockedSlides');
558-
loadExtension('responsiveSlides');
559-
loadExtension('fadingEffect');
560-
561542
init();
562543

563544
bindEvents();
@@ -645,15 +626,6 @@
645626
}
646627
}
647628

648-
/**
649-
* Sets a public internal function based on the extension name.
650-
* @param externalName {String} Extension name with the form fp_[NAME]Extension referring to an external function.
651-
*/
652-
function loadExtension(internalName){
653-
var externalName = 'fp_' + internalName + 'Extension';
654-
FP[internalName] = typeof window[externalName] !=='undefined' ? new window[externalName]() : null;
655-
}
656-
657629
/**
658630
* Setting options from DOM elements if they are not provided.
659631
*/
@@ -726,10 +698,6 @@
726698

727699
enableYoutubeAPI();
728700

729-
if(options.fadingEffect && FP.fadingEffect){
730-
FP.fadingEffect.apply();
731-
}
732-
733701
if(options.scrollOverflow){
734702
if(document.readyState === 'complete'){
735703
createScrollBarHandler();
@@ -1096,10 +1064,6 @@
10961064
}
10971065
var check = (type === 'down') ? 'bottom' : 'top';
10981066
var scrollSection = (type === 'down') ? moveSectionDown : moveSectionUp;
1099-
1100-
if(FP.scrollHorizontally){
1101-
scrollSection = FP.scrollHorizontally.getScrollSection(type, scrollSection);
1102-
}
11031067

11041068
if(scrollable.length > 0 ){
11051069
//is the scrollbar at the start/end of the scroll?
@@ -1607,10 +1571,6 @@
16071571
$.isFunction(options.afterLoad) && !v.localIsResizing && options.afterLoad.call(v.element, v.anchorLink, (v.sectionIndex + 1));
16081572
options.scrollOverflowHandler.afterLoad();
16091573

1610-
if(options.resetSliders && FP.resetSliders){
1611-
FP.resetSliders.apply(v);
1612-
}
1613-
16141574
playMedia(v.element);
16151575
v.element.addClass(COMPLETELY).siblings().removeClass(COMPLETELY);
16161576

@@ -1990,22 +1950,11 @@
19901950
setState(v.slideIndex, v.slideAnchor, v.anchorLink, v.sectionIndex);
19911951
}
19921952

1993-
if(FP.continuousHorizontal){
1994-
FP.continuousHorizontal.apply(v);
1995-
}
1996-
19971953
performHorizontalMove(slides, v, true);
1998-
1999-
if(options.interlockedSlides && FP.interlockedSlides){
2000-
FP.interlockedSlides.apply(v);
2001-
}
20021954
}
20031955

20041956

20051957
function afterSlideLoads(v){
2006-
if(FP.continuousHorizontal){
2007-
FP.continuousHorizontal.afterSlideLoads(v);
2008-
}
20091958
activeSlidesNavigation(v.slidesNav, v.slideIndex);
20101959

20111960
//if the site is not just resizing and readjusting the slides
@@ -2021,10 +1970,6 @@
20211970

20221971
//letting them slide again
20231972
slideMoving = false;
2024-
2025-
if(FP.interlockedSlides){
2026-
FP.interlockedSlides.apply(v);
2027-
}
20281973
}
20291974

20301975
/**

0 commit comments

Comments
 (0)