mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-10 19:57:13 +03:00
dispose of data was found to not work as expected
This commit is contained in:
parent
fc0aa59bb4
commit
5c9ddfdeb4
|
@ -38,7 +38,7 @@ const Base = (($) => {
|
|||
}
|
||||
|
||||
dispose(dataKey) {
|
||||
$.removeData(this.$element, dataKey)
|
||||
this.$element.data(dataKey, null)
|
||||
this.$element = null
|
||||
this.config = null
|
||||
}
|
||||
|
|
2
js/src/bootstrapMaterialDesign.js
vendored
2
js/src/bootstrapMaterialDesign.js
vendored
|
@ -154,7 +154,7 @@ const BootstrapMaterialDesign = (($) => {
|
|||
}
|
||||
|
||||
dispose() {
|
||||
$.removeData(this.$element, DATA_KEY)
|
||||
this.$element.data(DATA_KEY, null)
|
||||
this.$element = null
|
||||
this.config = null
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user