Skip to content
Permalink
Browse files

- Fixed security issue

  • Loading branch information
alvarotrigo committed Jan 14, 2016
1 parent 4210b4f commit 303595d9ce0d91763e8a58aab4cd1c7f119887e7
Showing with 21 additions and 21 deletions.
  1. +4 −4 jquery.pagepiling.js
  2. +17 −17 jquery.pagepiling.min.js
@@ -1,5 +1,5 @@
/**
* pagepiling.js 1.5.1
* pagepiling.js 1.5.2
*
* https://github.com/alvarotrigo/pagePiling.js
* MIT licensed
@@ -134,7 +134,7 @@
var destiny = '';

if(isNaN(section)){
destiny = $('[data-anchor="'+section+'"]');
destiny = $(document).find('[data-anchor="'+section+'"]');
}else{
destiny = $('.pp-section').eq( (section -1) );
}
@@ -424,7 +424,7 @@
//getting the anchor link in the URL and deleting the `#`
var value = window.location.hash.replace('#', '');
var sectionAnchor = value;
var section = $('.pp-section[data-anchor="'+sectionAnchor+'"]');
var section = $(document).find('.pp-section[data-anchor="'+sectionAnchor+'"]');

if(section.length > 0){ //if theres any #
scrollPage(section, options.animateAnchor);
@@ -463,7 +463,7 @@
var section;

if(isNaN(sectionAnchor)){
section = $('[data-anchor="'+sectionAnchor+'"]');
section = $(document).find('[data-anchor="'+sectionAnchor+'"]');
}else{
section = $('.pp-section').eq( (sectionAnchor -1) );
}

Some generated files are not rendered by default. Learn more.

0 comments on commit 303595d

Please sign in to comment.
You can’t perform that action at this time.