Skip to content

Commit

Permalink
Replace "plugin" word with "library"
Browse files Browse the repository at this point in the history
  • Loading branch information
venkateshwar committed Dec 15, 2016
1 parent d02ec15 commit 181502f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Slim-scroll (_JavaScript Scroll Plugin_)
#Slim-scroll (_JavaScript Scroll Library)

Slim scroll is a replacement of default scrollbar provided by browsers on Windows. This plugin lets you design the scroll-bar by using simple css properties. It is created using javascript and css. This will change the style only if the default scrollbar looks ugly.
Slim scroll is a replacement of default scrollbar provided by browsers on Windows. This library lets you design the scroll-bar by using simple css properties. It is created using javascript and css. This will change the style only if the default scrollbar looks ugly.

[Download](https://github.com/kamlekar/slim-scroll/releases/latest)  |  [Github](https://github.com/venkateshwar/slim-scroll/)

Expand All @@ -15,7 +15,7 @@ Slim scroll is a replacement of default scrollbar provided by browsers on Window
- Re-evaluates when the window is resized, vertically.

###How to use:
- To make it work, include `slimscroll.js` (_plugin_) in `head` tag.
- To make it work, include `slimscroll.js` in `head` tag.
- Apply height to the container in fixed units or percentage.
- Just design the scrollbar as you want by applying css classes as explained below.
- [In IE8] Apply high specificity to override normal styles given to the scroll bar.
Expand Down Expand Up @@ -64,8 +64,8 @@ or to add your own defined css styles:
###Note:

- Usage of the above mentioned properties is optional or as per need.
- Add [higher specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity) css to override the custom styles which are being applied by the plugin.
- Don't override the styles which are given highest specificity (`!important`) by the plugin (_those styles are necessary to make this scroll plugin work_).
- Add [higher specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity) css to override the custom styles which are being applied by this library.
- Don't override the styles which are given highest specificity (`!important`) by this library (_those styles are necessary to make this scroll library work_).


###How I got this thought:
Expand Down
7 changes: 3 additions & 4 deletions slimscroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var slimScroll = function(C, payload){


var i = {},
_this,
_this = this,
w = "wrapper",s = "scrollBar",S = "scrollBarContainer",a = "",m = "",l="data-slimscroll",
// properties
oT = "offsetTop",sT = "scrollTop",pE = "parentElement",pes= "previousElementSibling",
Expand Down Expand Up @@ -261,9 +261,8 @@ var slimScroll = function(C, payload){
}
};

this.resetValues = assignValues;
this.init = init;
_this = this;
_this.resetValues = assignValues;
_this.init = init;
init();
return _this;
};

0 comments on commit 181502f

Please sign in to comment.