dispose of data was found to not work as expected

This commit is contained in:
Kevin Ross 2016-04-26 17:46:10 -05:00
parent fc0aa59bb4
commit 5c9ddfdeb4
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ const Base = (($) => {
} }
dispose(dataKey) { dispose(dataKey) {
$.removeData(this.$element, dataKey) this.$element.data(dataKey, null)
this.$element = null this.$element = null
this.config = null this.config = null
} }

View File

@ -154,7 +154,7 @@ const BootstrapMaterialDesign = (($) => {
} }
dispose() { dispose() {
$.removeData(this.$element, DATA_KEY) this.$element.data(DATA_KEY, null)
this.$element = null this.$element = null
this.config = null this.config = null
} }

View File

@ -59,7 +59,7 @@ const Ripples = (($) => {
dispose() { dispose() {
$.removeData(this.$element, DATA_KEY) this.$element.data(DATA_KEY, null)
this.$element = null this.$element = null
this.$container = null this.$container = null
this.$decorator = null this.$decorator = null