Skip to content

Commit

Permalink
remove class RESPONSIVE from $body in destroyStructure
Browse files Browse the repository at this point in the history
  • Loading branch information
setheid committed Jun 9, 2016
1 parent 0ae494e commit 98ed5bd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions jquery.fullPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
disableMouse: true,

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

$.fn.fullpage = function(options) {
Expand Down Expand Up @@ -2627,6 +2627,11 @@
// remove .fp-enabled class
$('html').removeClass(ENABLED);

// remove .fp-responsive class
if ($body.hasClass(RESPONSIVE)) {
$body.removeClass(RESPONSIVE);
}

// remove all of the .fp-viewing- classes
$.each($body.get(0).className.split(/\s+/), function (index, className) {
if (className.indexOf(VIEWING_PREFIX) === 0) {
Expand Down Expand Up @@ -2722,7 +2727,7 @@
function showError(type, text){
console && console[type] && console[type]('fullPage: ' + text);
}
}; //end of $.fn.fullpage
}; //end of $.fn.fullpage

/**
* An object to handle overflow scrolling.
Expand Down

0 comments on commit 98ed5bd

Please sign in to comment.