Wrap core functionality in an each function
If we have many DOM elements that match the PerfectScrollbar selector, then all elemets get scrolled if one of them is scrolled.
This commit is contained in:
parent
c6c087275c
commit
d5dd3422cf
2
min/perfect-scrollbar.min.js
vendored
2
min/perfect-scrollbar.min.js
vendored
File diff suppressed because one or more lines are too long
2
min/perfect-scrollbar.with-mousewheel.min.js
vendored
2
min/perfect-scrollbar.with-mousewheel.min.js
vendored
File diff suppressed because one or more lines are too long
@ -11,6 +11,7 @@
|
||||
|
||||
$.fn.perfectScrollbar = function (suppliedSettings, option) {
|
||||
|
||||
return this.each(function() {
|
||||
// Use the default settings
|
||||
var settings = $.extend(true, {}, defaultSettings);
|
||||
if (typeof suppliedSettings === "object") {
|
||||
@ -320,5 +321,6 @@
|
||||
initialize();
|
||||
|
||||
return $this;
|
||||
});
|
||||
};
|
||||
})(jQuery));
|
||||
|
Loading…
Reference in New Issue
Block a user