"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/common/src/util/dom-manip.ts" 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.

dom-manip.ts  (fullcalendar-5.9.0):dom-manip.ts  (fullcalendar-5.10.0)
skipping to change at line 113 skipping to change at line 113
export function getEventTargetViaRoot(ev: Event) { export function getEventTargetViaRoot(ev: Event) {
return ev.composedPath?.()[0] ?? ev.target return ev.composedPath?.()[0] ?? ev.target
} }
// Shadow DOM consuderations // Shadow DOM consuderations
// ----------------------------------------------------------------------------- ----------------------------------- // ----------------------------------------------------------------------------- -----------------------------------
export function getElRoot(el: HTMLElement): ShadowRoot | Document { export function getElRoot(el: HTMLElement): ShadowRoot | Document {
return el.getRootNode ? el.getRootNode() as ShadowRoot : document return el.getRootNode ? el.getRootNode() as ShadowRoot : document
} }
// Unique ID for DOM attribute
let guid = 0
export function getUniqueDomId() {
guid += 1
return 'fc-dom-' + guid
}
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

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