Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1072 from DmitryKrekota/master
Browse files Browse the repository at this point in the history
fix console error on destroy
  • Loading branch information
sculove committed Dec 19, 2016
2 parents 59333b0 + 72bef75 commit 0c6135e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/indicator/indicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Indicator.prototype = {
utils.removeEvent(window, 'mouseup', this);
}

if ( this.options.defaultScrollbars ) {
if ( this.options.defaultScrollbars && this.wrapper.parentNode ) {
this.wrapper.parentNode.removeChild(this.wrapper);
}
},
Expand Down

0 comments on commit 0c6135e

Please sign in to comment.