"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/common/src/CalendarApi.tsx" between
fullcalendar-5.9.0.tar.gz and fullcalendar-5.10.0.tar.gz

About: FullCalendar is a full-sized drag & drop JavaScript event calendar.

CalendarApi.tsx  (fullcalendar-5.9.0):CalendarApi.tsx  (fullcalendar-5.10.0)
skipping to change at line 161 skipping to change at line 161
type: 'CHANGE_DATE', type: 'CHANGE_DATE',
dateMarker, dateMarker,
}) })
} }
} }
// Given a duration singular unit, like "week" or "day", finds a matching view spec. // Given a duration singular unit, like "week" or "day", finds a matching view spec.
// Preference is given to views that have corresponding buttons. // Preference is given to views that have corresponding buttons.
private getUnitViewSpec(unit: string): ViewSpec | null { private getUnitViewSpec(unit: string): ViewSpec | null {
let { viewSpecs, toolbarConfig } = this.getCurrentData() let { viewSpecs, toolbarConfig } = this.getCurrentData()
let viewTypes = [].concat(toolbarConfig.viewsWithButtons) let viewTypes = [].concat(
toolbarConfig.header ? toolbarConfig.header.viewsWithButtons : [],
toolbarConfig.footer ? toolbarConfig.footer.viewsWithButtons : [],
)
let i let i
let spec let spec
for (let viewType in viewSpecs) { for (let viewType in viewSpecs) {
viewTypes.push(viewType) viewTypes.push(viewType)
} }
for (i = 0; i < viewTypes.length; i += 1) { for (i = 0; i < viewTypes.length; i += 1) {
spec = viewSpecs[viewTypes[i]] spec = viewSpecs[viewTypes[i]]
if (spec) { if (spec) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)