From c76aa0811393ec649f54afaca433d1b125197a7e Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Sun, 27 Dec 2015 20:11:43 +0900 Subject: [PATCH] Update README.md '#' is not a comment prefix in JavaScript. Use '//'. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 28f4b3b..b0e7328 100644 --- a/README.md +++ b/README.md @@ -218,10 +218,10 @@ require.config({ and load `perfectScrollbar` in the initialiser of your app: ```javascript -# for vanilla JS: +// for vanilla JS: window.Ps = require('perfectScrollbar'); -# for jQuery: +// for jQuery: require('perfectScrollbarJQuery'); ``` @@ -250,12 +250,12 @@ function (angular) { And initialise perfectScrollbar in a controller: ```javascript -# by vanilla JS: +// by vanilla JS: var container = document.getElementById('imgLoader'); Ps.initialize(container); Ps.update(container); -# or by jQuery: +// or by jQuery: var imgLoader = $("#imgLoader") imgLoader.perfectScrollbar(); ```