Skip to content

Commit 4c761d7

Browse files
committed
- Updating version and dist files
1 parent 423457d commit 4c761d7

12 files changed

+29
-26
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![preview](https://raw.github.com/alvarotrigo/fullPage.js/master/examples/imgs/intro.png)
44
![compatibility](https://raw.github.com/alvarotrigo/fullPage.js/master/examples/imgs/compatible.gif)
55

6-
![fullPage.js version](http://img.shields.io/badge/fullPage.js-v2.8.0-brightgreen.svg)
6+
![fullPage.js version](http://img.shields.io/badge/fullPage.js-v2.8.1-brightgreen.svg)
77
[![License](http://img.shields.io/badge/License-MIT-blue.svg)](http://opensource.org/licenses/MIT)
88
7Kb gziped!
99

dist/jquery.fullpage.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* fullPage 2.8.0
2+
* fullPage 2.8.1
33
* https://github.com/alvarotrigo/fullPage.js
44
* MIT licensed
55
*

dist/jquery.fullpage.js

+14-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* fullPage 2.8.0
2+
* fullPage 2.8.1
33
* https://github.com/alvarotrigo/fullPage.js
44
* @license MIT licensed
55
*
@@ -94,7 +94,10 @@
9494
mouseWheel: true,
9595
hideScrollbars: false,
9696
fadeScrollbars: false,
97-
disableMouse: true
97+
disableMouse: true,
98+
99+
//fixing bug in iScroll with links: https://github.com/cubiq/iscroll/issues/783
100+
click: true
98101
};
99102

100103
$.fn.fullpage = function(options) {
@@ -1615,8 +1618,8 @@
16151618
function scrollToAnchor(){
16161619
//getting the anchor link in the URL and deleting the `#`
16171620
var value = window.location.hash.replace('#', '').split('/');
1618-
var section = value[0];
1619-
var slide = value[1];
1621+
var section = decodeURIComponent(value[0]);
1622+
var slide = decodeURIComponent(value[1]);
16201623

16211624
if(section){ //if theres any #
16221625
if(options.animateAnchor){
@@ -1634,8 +1637,8 @@
16341637
function hashChangeHandler(){
16351638
if(!isScrolling && !options.lockAnchors){
16361639
var value = window.location.hash.replace('#', '').split('/');
1637-
var section = value[0];
1638-
var slide = value[1];
1640+
var section = decodeURIComponent(value[0]);
1641+
var slide = decodeURIComponent(value[1]);
16391642

16401643
//when moving to a slide in the first section for the first time (first time to add an anchor to the URL)
16411644
var isFirstSlideMove = (typeof lastScrolledDestiny === 'undefined');
@@ -2763,15 +2766,16 @@
27632766
*/
27642767
onLeave: function(){
27652768
var scroller = $(SECTION_ACTIVE_SEL).find(SCROLLABLE_SEL).data('iscrollInstance');
2766-
if(typeof scroller !== 'undefined'){
2769+
2770+
if(typeof scroller !== 'undefined' && scroller){
27672771
scroller.wheelOff();
27682772
}
27692773
},
27702774

27712775
// Turns on iScroll on section load
27722776
afterLoad: function(){
27732777
var scroller = $(SECTION_ACTIVE_SEL).find(SCROLLABLE_SEL).data('iscrollInstance');
2774-
if(typeof scroller !== 'undefined'){
2778+
if(typeof scroller !== 'undefined' && scroller){
27752779
scroller.wheelOn();
27762780
}
27772781
},
@@ -2860,7 +2864,7 @@
28602864
var iScrollInstance = scrollable.data('iscrollInstance');
28612865
iScrollInstance.destroy();
28622866

2863-
scrollable.data( 'iscrollInstance', undefined );
2867+
scrollable.data('iscrollInstance', 'undefined');
28642868
}
28652869
element.find(SCROLLABLE_SEL).children().first().children().first().unwrap().unwrap();
28662870
},
@@ -2899,4 +2903,4 @@
28992903
}
29002904
};
29012905

2902-
});
2906+
});

dist/jquery.fullpage.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.fullpage.min.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.fullpage.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.fullpage.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jquery.fullPage.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* fullPage 2.8.0
2+
* fullPage 2.8.1
33
* https://github.com/alvarotrigo/fullPage.js
44
* MIT licensed
55
*

jquery.fullPage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
mouseWheel: true,
9595
hideScrollbars: false,
9696
fadeScrollbars: false,
97-
disableMouse: true
97+
disableMouse: true,
9898

9999
//fixing bug in iScroll with links: https://github.com/cubiq/iscroll/issues/783
100100
click: true

jquery.fullPage.min.js

+2-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jquery.fullPage.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* fullPage 2.8.0
2+
* fullPage 2.8.1
33
* https://github.com/alvarotrigo/fullPage.js
44
* MIT licensed
55
*

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fullpage.js",
3-
"version": "2.8.0",
3+
"version": "2.8.1",
44
"description": "Create beautiful fullscreen scrolling websites",
55
"main": "jquery.fullPage.js",
66
"scripts": {
@@ -39,10 +39,10 @@
3939
"namespace": "$.fn.fullpage",
4040
"devDependencies": {
4141
"gulp": "^3.9.0",
42-
"gulp-minify-css": "^1.2.1",
42+
"gulp-clean-css": "^2.0.8",
4343
"gulp-rename": "^1.2.2",
4444
"gulp-sass": "^2.0.4",
4545
"gulp-sourcemaps": "^1.6.0",
4646
"gulp-uglify": "^1.4.1"
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)