diff --git a/js/src/base.js b/js/src/base.js index 31459dac..283b9769 100644 --- a/js/src/base.js +++ b/js/src/base.js @@ -38,7 +38,7 @@ const Base = (($) => { } dispose(dataKey) { - $.removeData(this.$element, dataKey) + this.$element.data(dataKey, null) this.$element = null this.config = null } diff --git a/js/src/bootstrapMaterialDesign.js b/js/src/bootstrapMaterialDesign.js index 4caaa042..b2e32744 100644 --- a/js/src/bootstrapMaterialDesign.js +++ b/js/src/bootstrapMaterialDesign.js @@ -154,7 +154,7 @@ const BootstrapMaterialDesign = (($) => { } dispose() { - $.removeData(this.$element, DATA_KEY) + this.$element.data(DATA_KEY, null) this.$element = null this.config = null } diff --git a/js/src/ripples.js b/js/src/ripples.js index c8321592..c28d2870 100644 --- a/js/src/ripples.js +++ b/js/src/ripples.js @@ -59,7 +59,7 @@ const Ripples = (($) => { dispose() { - $.removeData(this.$element, DATA_KEY) + this.$element.data(DATA_KEY, null) this.$element = null this.$container = null this.$decorator = null