Update README.md

'#' is not a comment prefix in JavaScript. Use '//'.
This commit is contained in:
Hyunje Alex Jun 2015-12-27 20:11:43 +09:00
parent 4d7f441d1f
commit c76aa08113

View File

@ -218,10 +218,10 @@ require.config({
and load `perfectScrollbar` in the initialiser of your app: and load `perfectScrollbar` in the initialiser of your app:
```javascript ```javascript
# for vanilla JS: // for vanilla JS:
window.Ps = require('perfectScrollbar'); window.Ps = require('perfectScrollbar');
# for jQuery: // for jQuery:
require('perfectScrollbarJQuery'); require('perfectScrollbarJQuery');
``` ```
@ -250,12 +250,12 @@ function (angular) {
And initialise perfectScrollbar in a controller: And initialise perfectScrollbar in a controller:
```javascript ```javascript
# by vanilla JS: // by vanilla JS:
var container = document.getElementById('imgLoader'); var container = document.getElementById('imgLoader');
Ps.initialize(container); Ps.initialize(container);
Ps.update(container); Ps.update(container);
# or by jQuery: // or by jQuery:
var imgLoader = $("#imgLoader") var imgLoader = $("#imgLoader")
imgLoader.perfectScrollbar(); imgLoader.perfectScrollbar();
``` ```