diff --git a/src/definitions/modules/calendar.js b/src/definitions/modules/calendar.js index 3c3c25a207..3e82030b27 100644 --- a/src/definitions/modules/calendar.js +++ b/src/definitions/modules/calendar.js @@ -102,7 +102,17 @@ destroy: function () { module.verbose('Destroying previous calendar for', element); - $module.removeData(moduleNamespace); + $module.removeData([ + metadata.date, + metadata.focusDate, + metadata.startDate, + metadata.endDate, + metadata.minDate, + metadata.maxDate, + metadata.mode, + metadata.monthOffset, + moduleNamespace, + ]); module.unbind.events(); module.disconnect.classObserver(); },