Scrollbar: compatible with vue 2.2.6, fixed #3797 (#3845)

This commit is contained in:
cinwell.li 2017-03-29 11:58:34 +08:00 committed by baiyaaaaa
parent 8fa78ac413
commit aa63558340

View File

@ -123,7 +123,7 @@ export default {
!this.noresize && addResizeListener(this.$refs.resize, this.update);
},
destroyed() {
beforeDestroy() {
if (this.native) return;
!this.noresize && removeResizeListener(this.$refs.resize, this.update);
}