Merge pull request #26 from ahmadsherif/master
Wrap core functionality in an each function.
This commit is contained in:
commit
b89660f959
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) {
|
$.fn.perfectScrollbar = function (suppliedSettings, option) {
|
||||||
|
|
||||||
|
return this.each(function() {
|
||||||
// Use the default settings
|
// Use the default settings
|
||||||
var settings = $.extend(true, {}, defaultSettings);
|
var settings = $.extend(true, {}, defaultSettings);
|
||||||
if (typeof suppliedSettings === "object") {
|
if (typeof suppliedSettings === "object") {
|
||||||
@ -320,5 +321,6 @@
|
|||||||
initialize();
|
initialize();
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
})(jQuery));
|
})(jQuery));
|
||||||
|
Loading…
Reference in New Issue
Block a user