Skip to content

Commit

Permalink
Merge pull request alvarotrigo#3973 from AlekseiKrivo/patch-1
Browse files Browse the repository at this point in the history
Fix for alvarotrigo#3931 (normalScrollElements option)
  • Loading branch information
alvarotrigo authored Jul 6, 2020
2 parents 565650d + e2327af commit dffb381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendors/scrolloverflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -2404,7 +2404,7 @@ if ( typeof module != 'undefined' && module.exports ) {

// Enables or disables the whole iScroll feature based on the given parameter.
setIscroll: function(target, enable){
if(!iscrollHandler.hasBeenInit){
if(!iscrollHandler.hasBeenInit || !target){
return;
}
var scrollable = fp_utils.closest(target, SCROLLABLE_SEL) || ($(SCROLLABLE_SEL, target) && $(SCROLLABLE_SEL, target)[0]);
Expand Down Expand Up @@ -2605,4 +2605,4 @@ if ( typeof module != 'undefined' && module.exports ) {
iscrollHandler: iscrollHandler
};
})();
})(window, document);
})(window, document);

0 comments on commit dffb381

Please sign in to comment.