@fullcalendar/vue
Advanced tools
Comparing version 4.3.0 to 4.3.1
/* | ||
FullCalendar Vue Component v4.3.0 | ||
FullCalendar Vue Component v4.3.1 | ||
Docs: https://fullcalendar.io/docs/vue | ||
@@ -247,6 +247,8 @@ License: MIT | ||
// this.$options.calendar | ||
// this.$options.deepCopies - all current deep options | ||
// this.$options.dirtyOptions - null/undefined means nothing dirty | ||
data: function data() { | ||
return { | ||
renderId: 0 | ||
renderId: 0, | ||
deepCopies: {} | ||
}; | ||
@@ -264,3 +266,3 @@ }, | ||
warnDeprecatedListeners(this.$listeners); | ||
this.$options.calendar = new Calendar(this.$el, this.buildOptions()); | ||
this.$options.calendar = new Calendar(this.$el, this.buildCalendarOptions()); | ||
this.$options.calendar.render(); | ||
@@ -276,3 +278,3 @@ }, | ||
methods: { | ||
buildOptions: function buildOptions() { | ||
buildCalendarOptions: function buildCalendarOptions() { | ||
var _this = this; | ||
@@ -321,3 +323,9 @@ | ||
if (propVal !== undefined) { | ||
options[propName] = PROP_IS_DEEP[propName] ? deepCopy(propVal) : propVal; | ||
if (PROP_IS_DEEP[propName]) { | ||
propVal = deepCopy(propVal); // freeze state | ||
this.deepCopies[propName] = propVal; // side effect! | ||
} | ||
options[propName] = propVal; | ||
} | ||
@@ -353,3 +361,12 @@ } | ||
handler: function handler(newVal) { | ||
this.recordDirtyOption(propName, deepCopy(newVal)); | ||
// use this instead of the handler's param because if same reference, will always be equal | ||
var oldVal = this.deepCopies[propName]; | ||
if (!deepEqual(newVal, oldVal)) { | ||
newVal = deepCopy(newVal); // freeze state | ||
this.deepCopies[propName] = newVal; // always keep this up to date | ||
this.recordDirtyOption(propName, newVal); | ||
} | ||
} | ||
@@ -356,0 +373,0 @@ }; |
/* | ||
FullCalendar Vue Component v4.3.0 | ||
FullCalendar Vue Component v4.3.1 | ||
Docs: https://fullcalendar.io/docs/vue | ||
@@ -303,6 +303,8 @@ License: MIT | ||
// this.$options.calendar | ||
// this.$options.deepCopies - all current deep options | ||
// this.$options.dirtyOptions - null/undefined means nothing dirty | ||
data: function data() { | ||
return { | ||
renderId: 0 | ||
renderId: 0, | ||
deepCopies: {} | ||
}; | ||
@@ -320,3 +322,3 @@ }, | ||
warnDeprecatedListeners(this.$listeners); | ||
this.$options.calendar = new core.Calendar(this.$el, this.buildOptions()); | ||
this.$options.calendar = new core.Calendar(this.$el, this.buildCalendarOptions()); | ||
this.$options.calendar.render(); | ||
@@ -332,3 +334,3 @@ }, | ||
methods: { | ||
buildOptions: function buildOptions() { | ||
buildCalendarOptions: function buildCalendarOptions() { | ||
var _this = this; | ||
@@ -377,3 +379,9 @@ | ||
if (propVal !== undefined) { | ||
options[propName] = PROP_IS_DEEP[propName] ? deepCopy(propVal) : propVal; | ||
if (PROP_IS_DEEP[propName]) { | ||
propVal = deepCopy(propVal); // freeze state | ||
this.deepCopies[propName] = propVal; // side effect! | ||
} | ||
options[propName] = propVal; | ||
} | ||
@@ -409,3 +417,12 @@ } | ||
handler: function handler(newVal) { | ||
this.recordDirtyOption(propName, deepCopy(newVal)); | ||
// use this instead of the handler's param because if same reference, will always be equal | ||
var oldVal = this.deepCopies[propName]; | ||
if (!fastDeepEqual(newVal, oldVal)) { | ||
newVal = deepCopy(newVal); // freeze state | ||
this.deepCopies[propName] = newVal; // always keep this up to date | ||
this.recordDirtyOption(propName, newVal); | ||
} | ||
} | ||
@@ -412,0 +429,0 @@ }; |
{ | ||
"name": "@fullcalendar/vue", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"title": "FullCalendar Vue Component", | ||
@@ -5,0 +5,0 @@ "description": "An official FullCalendar component for Vue", |
27180
805