diff --git a/src/components/slider/slideMixin.js b/src/components/slider/slideMixin.js index 4818fe4..4e621e8 100644 --- a/src/components/slider/slideMixin.js +++ b/src/components/slider/slideMixin.js @@ -83,6 +83,10 @@ export default { this._slideTo(this.currentIndex) weex.utils.fireLazyload(this.$el, true) }, + + destroyed () { + this._stopAutoPlay(); + }, methods: { _getWrapperSize () { diff --git a/src/modules/modal/confirm.js b/src/modules/modal/confirm.js index efd7628..44c14e6 100644 --- a/src/modules/modal/confirm.js +++ b/src/modules/modal/confirm.js @@ -53,8 +53,8 @@ Confirm.prototype.createNodeContent = function () { const btnCancel = document.createElement('div') btnCancel.appendChild(document.createTextNode(this.cancelTitle)) btnCancel.classList.add('btn-cancel', BUTTON_CLASS) - buttonGroup.appendChild(btnOk) buttonGroup.appendChild(btnCancel) + buttonGroup.appendChild(btnOk) this.node.appendChild(buttonGroup) }