Skip to content

Commit ee0289b

Browse files
author
unknown
committed
1.2.0
1 parent 2b9b87b commit ee0289b

17 files changed

+309
-399
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,8 @@ the main CSS is imported.
118118
<link rel="stylesheet" href="css/perfect-scrollbar.css">
119119
```
120120

121-
Using CommonJS:
122121

123-
```js
124-
const PerfectScrollbar = require('perfect-scrollbar');
125-
```
126-
127-
Using ES Modules or TypeScript:
122+
Import via ES modules:
128123

129124
```js
130125
import PerfectScrollbar from 'perfect-scrollbar';
@@ -166,6 +161,7 @@ If you want to destroy the scrollbar, use `destroy`.
166161

167162
```js
168163
ps.destroy();
164+
ps = null; // to make sure garbages are collected
169165
```
170166

171167
If you want to scroll to somewhere, just update `scrollTop`.

0 commit comments

Comments
 (0)