Merge pull request #26 from ahmadsherif/master

Wrap core functionality in an each function.
This commit is contained in:
Hyunje Alex Jun 2013-05-22 18:46:32 -07:00
commit b89660f959
3 changed files with 288 additions and 286 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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));