Adam Shaw 8 лет назад
Родитель
Сommit
1e5e73699c

+ 1 - 1
src/agenda/TimeGrid.ts

@@ -348,7 +348,7 @@ export default class TimeGrid extends InteractiveDateComponent {
     this.highlightContainerEls = findElsWithin(skeletonEl, '.fc-highlight-container')
     this.businessContainerEls = findElsWithin(skeletonEl, '.fc-business-container')
 
-    this.bookendCells($(skeletonEl.getElementsByTagName('tr'))) // TODO: do this on string level
+    this.bookendCells(skeletonEl.querySelector('tr')) // TODO: do this on string level
     this.el.appendChild(skeletonEl)
   }
 

+ 1 - 1
src/basic/DayGridEventRenderer.ts

@@ -149,7 +149,7 @@ export default class DayGridEventRenderer extends EventRenderer {
       }
 
       emptyCellsUntil(colCnt) // finish off the row
-      this.dayGrid.bookendCells($(tr))
+      this.dayGrid.bookendCells(tr)
       tbody.appendChild(tr)
     }
 

+ 1 - 2
src/basic/DayGridFillRenderer.ts

@@ -1,4 +1,3 @@
-import * as $ from 'jquery'
 import { htmlToElement, makeElement } from '../util/dom'
 import FillRenderer from '../component/renderers/FillRenderer'
 import DayGrid from './DayGrid'
@@ -60,7 +59,7 @@ export default class DayGridFillRenderer extends FillRenderer {
       trEl.appendChild(makeElement('td', { colSpan: colCnt - endCol }))
     }
 
-    this.component.bookendCells($(trEl))
+    this.component.bookendCells(trEl)
 
     return skeletonEl
   }

+ 2 - 2
src/component/DayTableMixin.ts

@@ -11,7 +11,7 @@ export interface DayTableInterface {
   updateDayTable()
   renderHeadHtml()
   renderBgTrHtml(row)
-  bookendCells(trEl)
+  bookendCells(trEl: HTMLElement)
   getCellDate(row, col)
   getCellRange(row, col)
   sliceRangeByDay(unzonedRange)
@@ -441,7 +441,7 @@ export default class DayTableMixin extends Mixin implements DayTableInterface {
 
   // Applies the generic "intro" and "outro" HTML to the given cells.
   // Intro means the leftmost cell when the calendar is LTR and the rightmost cell when RTL. Vice-versa for outro.
-  bookendCells(trEl) {
+  bookendCells(trEl: HTMLElement) {
     let introHtml = this.renderIntroHtml()
 
     if (introHtml) {