Skip to content

Commit

Permalink
7.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
idiotWu committed May 26, 2017
1 parent 29749dd commit 513fc16
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
12 changes: 9 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
## [7.3.0](https://github.com/idiotWu/smooth-scrollbar/compare/v7.2.10...master) (2017-05-22)
## [7.3.1](https://github.com/idiotWu/smooth-scrollbar/compare/v7.3.0...v7.3.1) (2017-05-26)

### Bug Fixes

- **track**: Call `showTrack` whenever position changed. [d315413](https://github.com/idiotWu/smooth-scrollbar/commit/d315413eb403563637f9eae5f4b7e93470b3341e)
- **destroy**: uses loop instead of `innerHTML = ''` to avoid empty nodes in IE. ([#77](https://github.com/idiotWu/smooth-scrollbar/pull/77))

## [7.3.0](https://github.com/idiotWu/smooth-scrollbar/compare/v7.2.10...v7.3.0) (2017-05-22)

### Bug Fixes

- **track**: Call `showTrack` whenever position changed. ([d315413](https://github.com/idiotWu/smooth-scrollbar/commit/d315413eb403563637f9eae5f4b7e93470b3341e))

### Features

- **scrollIntoView**: add `alignToTop` option. [#75](https://github.com/idiotWu/smooth-scrollbar/pull/75)
- **scrollIntoView**: add `alignToTop` option. ([#75](https://github.com/idiotWu/smooth-scrollbar/pull/75))

### Minor Changes

Expand Down
6 changes: 3 additions & 3 deletions dist/smooth-scrollbar.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion lib/apis/destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ _smoothScrollbar.SmoothScrollbar.prototype.destroy = function (isRemoval) {
// reset content
var childNodes = [].concat(_toConsumableArray(content.childNodes));

container.innerHTML = '';
while (container.firstChild) {
container.removeChild(container.firstChild);
}

childNodes.forEach(function (el) {
return container.appendChild(el);
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
exports.default = _smoothScrollbar.SmoothScrollbar;


_smoothScrollbar.SmoothScrollbar.version = "7.3.0";
_smoothScrollbar.SmoothScrollbar.version = "7.3.1";

/**
* init scrollbar on given element
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smooth-scrollbar",
"version": "7.3.0",
"version": "7.3.1",
"description": "Customize scrollbar in modern browsers with smooth scrolling experience.",
"main": "dist/smooth-scrollbar.js",
"style": "dist/smooth-scrollbar.css",
Expand Down

0 comments on commit 513fc16

Please sign in to comment.