Adam Shaw 7 лет назад
Родитель
Сommit
2398c055da
50 измененных файлов с 128 добавлено и 128 удалено
  1. 1 1
      locale/ar-dz.js
  2. 1 1
      locale/ar-kw.js
  3. 1 1
      locale/ar-ly.js
  4. 1 1
      locale/ar-ma.js
  5. 1 1
      locale/ar-sa.js
  6. 1 1
      locale/ar-tn.js
  7. 1 1
      locale/ar.js
  8. 1 1
      locale/fa.js
  9. 1 1
      locale/he.js
  10. 1 1
      src/Calendar.ts
  11. 7 7
      src/OptionsManager.ts
  12. 4 4
      src/agenda/TimeGrid.ts
  13. 3 3
      src/agenda/TimeGridEventRenderer.ts
  14. 4 4
      src/basic/DayGrid.ts
  15. 1 1
      src/basic/DayGridEventRenderer.ts
  16. 2 2
      src/component/DateComponent.ts
  17. 6 6
      src/component/DayTableMixin.ts
  18. 1 1
      src/datelib/formatting-native.ts
  19. 1 1
      src/datelib/locale.ts
  20. 1 1
      src/options.ts
  21. 1 1
      src/types/input-types.ts
  22. 2 2
      tests/automated/legacy/Agenda-render.js
  23. 5 5
      tests/automated/legacy/DayGrid-events.js
  24. 4 4
      tests/automated/legacy/agenda-view.js
  25. 4 4
      tests/automated/legacy/background-events.js
  26. 4 4
      tests/automated/legacy/basic-view.js
  27. 9 9
      tests/automated/legacy/dateClick.js
  28. 2 2
      tests/automated/legacy/destroy.js
  29. 2 2
      tests/automated/legacy/eventLimit-popover.js
  30. 2 2
      tests/automated/legacy/firstDay.js
  31. 3 3
      tests/automated/legacy/header-rendering.js
  32. 4 4
      tests/automated/legacy/isRTL.js
  33. 3 3
      tests/automated/legacy/nowIndicator.js
  34. 5 5
      tests/automated/legacy/select-callback.js
  35. 3 3
      tests/automated/legacy/select-method.js
  36. 2 2
      tests/automated/legacy/weekLabel.js
  37. 6 6
      tests/automated/lib/dom-geom.js
  38. 4 4
      tests/manual/day_render.html
  39. 2 2
      tests/manual/droppable.html
  40. 6 6
      tests/manual/dynamic-options.html
  41. 1 1
      tests/manual/hiddenDays.html
  42. 1 1
      tests/manual/issue_740_event_resizing.html
  43. 1 1
      tests/manual/issue_757_removeEvents.html
  44. 1 1
      tests/manual/locale.html
  45. 1 1
      tests/manual/options.html
  46. 1 1
      tests/manual/selectable.html
  47. 6 6
      tests/manual/slot_event_overlap.html
  48. 1 1
      tests/manual/stacking.html
  49. 1 1
      tests/manual/triggers.html
  50. 1 1
      tests/manual/week_numbers.html

+ 1 - 1
locale/ar-dz.js

@@ -5,7 +5,7 @@ defineLocale("ar-dz", {
     dow: 0, // Sunday is the first day of the week.
     doy: 4  // The week that contains Jan 1st is the first week of the year.
   },
-  isRTL: true,
+  isRtl: true,
   buttonText: {
     prev: "السابق",
     next: "التالي",

+ 1 - 1
locale/ar-kw.js

@@ -5,7 +5,7 @@ defineLocale("ar-kw", {
     dow: 0, // Sunday is the first day of the week.
     doy: 12  // The week that contains Jan 1st is the first week of the year.
   },
-  isRTL: true,
+  isRtl: true,
   buttonText: {
     prev: "السابق",
     next: "التالي",

+ 1 - 1
locale/ar-ly.js

@@ -5,7 +5,7 @@ defineLocale("ar-ly", {
     dow: 6, // Saturday is the first day of the week.
     doy: 12  // The week that contains Jan 1st is the first week of the year.
   },
-  isRTL: true,
+  isRtl: true,
   buttonText: {
     prev: "السابق",
     next: "التالي",

+ 1 - 1
locale/ar-ma.js

@@ -5,7 +5,7 @@ defineLocale("ar-ma", {
     dow: 6, // Saturday is the first day of the week.
     doy: 12  // The week that contains Jan 1st is the first week of the year.
   },
-  isRTL: true,
+  isRtl: true,
   buttonText: {
     prev: "السابق",
     next: "التالي",

+ 1 - 1
locale/ar-sa.js

@@ -5,7 +5,7 @@ defineLocale("ar-sa", {
     dow: 0, // Sunday is the first day of the week.
     doy: 6  // The week that contains Jan 1st is the first week of the year.
   },
-  isRTL: true,
+  isRtl: true,
   buttonText: {
     prev: "السابق",
     next: "التالي",

+ 1 - 1
locale/ar-tn.js

@@ -5,7 +5,7 @@ defineLocale("ar-tn", {
     dow: 1, // Monday is the first day of the week.
     doy: 4 // The week that contains Jan 4th is the first week of the year.
   },
-  isRTL: true,
+  isRtl: true,
   buttonText: {
     prev: "السابق",
     next: "التالي",

+ 1 - 1
locale/ar.js

@@ -5,7 +5,7 @@ defineLocale("ar", {
     dow: 6, // Saturday is the first day of the week.
     doy: 12  // The week that contains Jan 1st is the first week of the year.
   },
-  isRTL: true,
+  isRtl: true,
   buttonText: {
     prev: "السابق",
     next: "التالي",

+ 1 - 1
locale/fa.js

@@ -5,7 +5,7 @@ defineLocale("fa", {
     dow: 6, // Saturday is the first day of the week.
     doy: 12 // The week that contains Jan 1st is the first week of the year.
   },
-  isRTL: true,
+  isRtl: true,
   buttonText: {
     prev: "قبلی",
     nex: "بعدی",

+ 1 - 1
locale/he.js

@@ -1,7 +1,7 @@
 import { defineLocale } from 'fullcalendar';
 
 defineLocale("he", {
-  isRTL: true,
+  isRtl: true,
   buttonText: {
     prev: "הקודם",
     next: "הבא",

+ 1 - 1
src/Calendar.ts

@@ -245,7 +245,7 @@ export default class Calendar {
 
   applyElClassNames() {
     let classList = this.el.classList
-    let elDirClassName = this.opt('isRTL') ? 'fc-rtl' : 'fc-ltr'
+    let elDirClassName = this.opt('isRtl') ? 'fc-rtl' : 'fc-ltr'
     let elThemeClassName = this.theme.getClass('widget')
 
     if (elDirClassName !== this.elDirClassName) {

+ 7 - 7
src/OptionsManager.ts

@@ -31,7 +31,7 @@ export default class OptionsManager {
   compute() {
     let locale
     let localeDefaults
-    let isRTL
+    let isRtl
     let dirDefaults
 
     locale = firstDefined( // explicit locale option given?
@@ -40,13 +40,13 @@ export default class OptionsManager {
     )
     localeDefaults = getLocale(locale).options // TODO: not efficient bc calendar already queries this
 
-    isRTL = firstDefined( // based on options computed so far, is direction RTL?
-      this.dynamicOverrides.isRTL,
-      this.overrides.isRTL,
-      localeDefaults.isRTL,
-      globalDefaults.isRTL
+    isRtl = firstDefined( // based on options computed so far, is direction RTL?
+      this.dynamicOverrides.isRtl,
+      this.overrides.isRtl,
+      localeDefaults.isRtl,
+      globalDefaults.isRtl
     )
-    dirDefaults = isRTL ? rtlDefaults : {}
+    dirDefaults = isRtl ? rtlDefaults : {}
 
     this.dirDefaults = dirDefaults
     this.localeDefaults = localeDefaults

+ 4 - 4
src/agenda/TimeGrid.ts

@@ -94,7 +94,7 @@ export default class TimeGrid extends DateComponent {
       let i
 
       for (i = 0; i < segs.length; i++) {
-        if (this.isRTL) {
+        if (this.isRtl) {
           segs[i].col = this.daysPerRow - 1 - segs[i].dayIndex
         } else {
           segs[i].col = segs[i].dayIndex
@@ -259,7 +259,7 @@ export default class TimeGrid extends DateComponent {
     let view = this.view
     let dateEnv = this.getDateEnv()
     let theme = this.getTheme()
-    let isRTL = this.isRTL
+    let isRtl = this.isRtl
     let dateProfile = this.dateProfile
     let html = ''
     let dayStart = startOfDay(dateProfile.renderRange.start)
@@ -288,9 +288,9 @@ export default class TimeGrid extends DateComponent {
         '<tr data-time="' + formatIsoTimeString(slotDate) + '"' +
           (isLabeled ? '' : ' class="fc-minor"') +
           '>' +
-          (!isRTL ? axisHtml : '') +
+          (!isRtl ? axisHtml : '') +
           '<td class="' + theme.getClass('widgetContent') + '"></td>' +
-          (isRTL ? axisHtml : '') +
+          (isRtl ? axisHtml : '') +
         '</tr>'
 
       slotTime = addDurations(slotTime, this.slotDuration)

+ 3 - 3
src/agenda/TimeGridEventRenderer.ts

@@ -279,7 +279,7 @@ export default class TimeGridEventRenderer extends EventRenderer {
     let backwardCoord = seg.backwardCoord // the left side if LTR. the right side if RTL. floating-point
     let forwardCoord = seg.forwardCoord // the right side if LTR. the left side if RTL. floating-point
     let props = this.timeGrid.generateSegVerticalCss(seg) // get top/bottom first
-    let isRTL = this.timeGrid.isRTL
+    let isRtl = this.timeGrid.isRtl
     let left // amount of space from left edge, a fraction of the total width
     let right // amount of space from right edge, a fraction of the total width
 
@@ -288,7 +288,7 @@ export default class TimeGridEventRenderer extends EventRenderer {
       forwardCoord = Math.min(1, backwardCoord + (forwardCoord - backwardCoord) * 2)
     }
 
-    if (isRTL) {
+    if (isRtl) {
       left = 1 - forwardCoord
       right = backwardCoord
     } else {
@@ -302,7 +302,7 @@ export default class TimeGridEventRenderer extends EventRenderer {
 
     if (shouldOverlap && seg.forwardPressure) {
       // add padding to the edge so that forward stacked events don't cover the resizer's icon
-      props[isRTL ? 'marginLeft' : 'marginRight'] = 10 * 2 // 10 is a guesstimate of the icon's width
+      props[isRtl ? 'marginLeft' : 'marginRight'] = 10 * 2 // 10 is a guesstimate of the icon's width
     }
 
     return props

+ 4 - 4
src/basic/DayGrid.ts

@@ -91,7 +91,7 @@ export default class DayGrid extends DateComponent {
         let seg = segs[i]
         seg.component = this
 
-        if (this.isRTL) {
+        if (this.isRtl) {
           seg.leftCol = this.daysPerRow - 1 - seg.lastRowDayIndex
           seg.rightCol = this.daysPerRow - 1 - seg.firstRowDayIndex
         } else {
@@ -222,9 +222,9 @@ export default class DayGrid extends DateComponent {
   renderNumberTrHtml(row) {
     return '' +
       '<tr>' +
-        (this.isRTL ? '' : this.renderNumberIntroHtml(row)) +
+        (this.isRtl ? '' : this.renderNumberIntroHtml(row)) +
         this.renderNumberCellsHtml(row) +
-        (this.isRTL ? this.renderNumberIntroHtml(row) : '') +
+        (this.isRtl ? this.renderNumberIntroHtml(row) : '') +
       '</tr>'
   }
 
@@ -669,7 +669,7 @@ export default class DayGrid extends DateComponent {
 
     // Determine horizontal coordinate.
     // We use the moreWrap instead of the <td> to avoid border confusion.
-    if (this.isRTL) {
+    if (this.isRtl) {
       options.right = computeRect(moreWrap).right + 1 // +1 to be over cell border
     } else {
       options.left = computeRect(moreWrap).left - 1 // -1 to be over cell border

+ 1 - 1
src/basic/DayGridEventRenderer.ts

@@ -276,7 +276,7 @@ export default class DayGridEventRenderer extends EventRenderer {
           ) +
       '>' +
         '<div class="fc-content">' +
-          (this.component.opt('isRTL') ?
+          (this.component.opt('isRtl') ?
             titleHtml + ' ' + timeHtml : // put a natural space in between
             timeHtml + ' ' + titleHtml   //
             ) +

+ 2 - 2
src/component/DateComponent.ts

@@ -72,7 +72,7 @@ export default abstract class DateComponent extends Component {
 
   uid: any
   childrenByUid: any
-  isRTL: boolean = false // frequently accessed options
+  isRtl: boolean = false // frequently accessed options
   nextDayThreshold: Duration // "
   view: View
   emitter: EmitterMixin = new EmitterMixin()
@@ -108,7 +108,7 @@ export default abstract class DateComponent extends Component {
     this.childrenByUid = {}
 
     this.nextDayThreshold = createDuration(this.opt('nextDayThreshold'))
-    this.isRTL = this.opt('isRTL')
+    this.isRtl = this.opt('isRtl')
 
     if (this.fillRendererClass) {
       this.fillRenderer = new this.fillRendererClass(this)

+ 6 - 6
src/component/DayTableMixin.ts

@@ -125,7 +125,7 @@ export default class DayTableMixin extends Mixin implements DayTableInterface {
 
   // Returns the numner of day cells, chronologically, from the first cell in *any given row*
   getColDayIndex(col) {
-    if ((this as any).isRTL) {
+    if ((this as any).isRtl) {
       return this.colCnt - 1 - col
     } else {
       return col
@@ -293,9 +293,9 @@ export default class DayTableMixin extends Mixin implements DayTableInterface {
   renderHeadTrHtml() {
     return '' +
       '<tr>' +
-        ((this as any).isRTL ? '' : this.renderHeadIntroHtml()) +
+        ((this as any).isRtl ? '' : this.renderHeadIntroHtml()) +
         this.renderHeadDateCellsHtml() +
-        ((this as any).isRTL ? this.renderHeadIntroHtml() : '') +
+        ((this as any).isRtl ? this.renderHeadIntroHtml() : '') +
       '</tr>'
   }
 
@@ -381,9 +381,9 @@ export default class DayTableMixin extends Mixin implements DayTableInterface {
   renderBgTrHtml(row) {
     return '' +
       '<tr>' +
-        ((this as any).isRTL ? '' : this.renderBgIntroHtml(row)) +
+        ((this as any).isRtl ? '' : this.renderBgIntroHtml(row)) +
         this.renderBgCellsHtml(row) +
-        ((this as any).isRTL ? this.renderBgIntroHtml(row) : '') +
+        ((this as any).isRtl ? this.renderBgIntroHtml(row) : '') +
       '</tr>'
   }
 
@@ -453,7 +453,7 @@ export default class DayTableMixin extends Mixin implements DayTableInterface {
     let introHtml = this.renderIntroHtml()
 
     if (introHtml) {
-      if ((this as any).isRTL) {
+      if ((this as any).isRtl) {
         appendToElement(trEl, introHtml)
       } else {
         prependToElement(trEl, introHtml)

+ 1 - 1
src/datelib/formatting-native.ts

@@ -199,7 +199,7 @@ function formatWeekNumber(num: number, weekLabel: string, locale: Locale, displa
 
   parts.push(locale.simpleNumberFormat.format(num))
 
-  if (locale.options.isRTL) {
+  if (locale.options.isRtl) {
     parts.reverse()
   }
 

+ 1 - 1
src/datelib/locale.ts

@@ -15,7 +15,7 @@ const RAW_EN_LOCALE = {
     dow: 0, // Sunday is the first day of the week
     doy: 4 // 4 days need to be within the year to be considered the first week
   },
-  isRTL: false,
+  isRtl: false,
   buttonText: {
     prev: 'prev',
     next: 'next',

+ 1 - 1
src/options.ts

@@ -44,7 +44,7 @@ export const globalDefaults = {
 
   // locale
   locale: 'en',
-  isRTL: false,
+  isRtl: false,
   // buttonIcons: null,
 
   // allows setting a min-height to the event segment to prevent short events overlapping each other

+ 1 - 1
src/types/input-types.ts

@@ -80,7 +80,7 @@ export interface OptionsInputBase {
   bootstrapGlyphicons?: boolean | ButtonIconsInput,
   bootstrapFontAwesome?: boolean | ButtonIconsInput,
   firstDay?: number
-  isRTL?: boolean
+  isRtl?: boolean
   weekends?: boolean
   hiddenDays?: number[]
   fixedWeekCount?: boolean

+ 2 - 2
tests/automated/legacy/Agenda-render.js

@@ -11,7 +11,7 @@ describe('Agenda view rendering', function() {
 
   describe('when LTR', function() {
     pushOptions({
-      isRTL: false
+      isRtl: false
     })
 
     it('renders the axis on the left', function() {
@@ -25,7 +25,7 @@ describe('Agenda view rendering', function() {
 
   describe('when RTL', function() {
     pushOptions({
-      isRTL: true
+      isRtl: true
     })
 
     it('renders the axis on the right', function() {

+ 5 - 5
tests/automated/legacy/DayGrid-events.js

@@ -14,7 +14,7 @@ describe('DayGrid event rendering', function() {
     initMonthTesting(true)
   })
 
-  function initMonthTesting(isRTL) {
+  function initMonthTesting(isRtl) {
     it('correctly renders an event starting before view\'s start', function() {
       var options = {}
       options.events = [
@@ -184,9 +184,9 @@ describe('DayGrid event rendering', function() {
     })
 
     function testSeg(calendarOptions, testSegOptions) {
-      calendarOptions.isRTL = isRTL
+      calendarOptions.isRtl = isRtl
       initCalendar(calendarOptions)
-      directionallyTestSeg(testSegOptions, isRTL)
+      directionallyTestSeg(testSegOptions, isRtl)
     }
   }
 
@@ -250,7 +250,7 @@ describe('DayGrid event rendering', function() {
     - isStart
     - isEnd
   */
-  function directionallyTestSeg(opts, isRTL) {
+  function directionallyTestSeg(opts, isRtl) {
     var el = opts.el ? $(opts.el) : getFirstEventEl()
 
     var row = opts.row || 0
@@ -259,7 +259,7 @@ describe('DayGrid event rendering', function() {
 
     var leftCol
     var rightCol
-    if (isRTL) {
+    if (isRtl) {
       leftCol = rowTds.length - opts.lastCol - 1
       rightCol = rowTds.length - opts.firstCol - 1
     } else {

+ 4 - 4
tests/automated/legacy/agenda-view.js

@@ -12,10 +12,10 @@ const AXIS_CLASS = 'fc-axis'
 
 describe('agenda view rendering', function() {
 
-  describe('when isRTL is false', function() {
+  describe('when isRtl is false', function() {
     pushOptions({
       defaultView: 'agendaWeek',
-      isRTL: false
+      isRtl: false
     })
 
     it('should have have days ordered sun to sat', function() {
@@ -32,10 +32,10 @@ describe('agenda view rendering', function() {
     })
   })
 
-  describe('when isRTL is true', function() {
+  describe('when isRtl is true', function() {
     pushOptions({
       defaultView: 'agendaWeek',
-      isRTL: true
+      isRtl: true
     })
 
     it('should have have days ordered sat to sun', function() {

+ 4 - 4
tests/automated/legacy/background-events.js

@@ -122,7 +122,7 @@ describe('background events', function() {
     })
 
     describe('when RTL', function() {
-      pushOptions({isRTL: true})
+      pushOptions({isRtl: true})
 
       it('render correctly on a single day', function(done) {
         var options = {}
@@ -320,7 +320,7 @@ describe('background events', function() {
       })
 
       describe('when RTL', function() {
-        pushOptions({ isRTL: true })
+        pushOptions({ isRtl: true })
 
         it('render correctly on a single day', function(done) {
           var options = {}
@@ -485,7 +485,7 @@ describe('background events', function() {
       })
     })
     describe('when RTL', function() {
-      pushOptions({ isRTL: true })
+      pushOptions({ isRtl: true })
       it('render correctly on one day', function(done) {
         var options = {}
         options.events = [ {
@@ -699,7 +699,7 @@ describe('background events', function() {
       })
 
       describe('when RTL', function() {
-        pushOptions({ isRTL: true })
+        pushOptions({ isRtl: true })
         it('render correctly on one day', function(done) {
           var options = {}
           options.events = [ {

+ 4 - 4
tests/automated/legacy/basic-view.js

@@ -5,10 +5,10 @@ describe('basic view rendering', function() {
     defaultView: 'month'
   })
 
-  describe('when isRTL is false', function() {
+  describe('when isRtl is false', function() {
 
     pushOptions({
-      isRTL: false
+      isRtl: false
     })
 
     it('should have days ordered sun to sat', function() {
@@ -24,10 +24,10 @@ describe('basic view rendering', function() {
     })
   })
 
-  describe('when isRTL is true', function() {
+  describe('when isRtl is true', function() {
 
     pushOptions({
-      isRTL: true
+      isRtl: true
     })
 
     it('should have days ordered sat to sun', function() {

+ 9 - 9
tests/automated/legacy/dateClick.js

@@ -5,10 +5,10 @@ describe('dateClick', function() {
     timeZone: 'UTC'
   });
 
-  [ false, true ].forEach(function(isRTL) {
-    describe('when isRTL is ' + isRTL, function() {
+  [ false, true ].forEach(function(isRtl) {
+    describe('when isRtl is ' + isRtl, function() {
 
-      pushOptions({ isRTL: isRTL });
+      pushOptions({ isRtl: isRtl });
 
       [ false, true ].forEach(function(selectable) {
         describe('when selectable is ' + selectable, function() {
@@ -30,7 +30,7 @@ describe('dateClick', function() {
 
               initCalendar(options)
 
-              var dayCell = $('.fc-day:eq(10)') // 2014-05-07 (regardless of isRTL)
+              var dayCell = $('.fc-day:eq(10)') // 2014-05-07 (regardless of isRtl)
 
               // for simulating the mousedown/mouseup/click (relevant for selectable)
               dayCell.simulate('drag')
@@ -54,7 +54,7 @@ describe('dateClick', function() {
 
               initCalendar(options)
 
-              // 2014-05-28 (regardless of isRTL)
+              // 2014-05-28 (regardless of isRtl)
               var dayContent = $('.fc-agenda-view .fc-day-grid .fc-day:eq(3)')
 
               // for simulating the mousedown/mouseup/click (relevant for selectable)
@@ -79,7 +79,7 @@ describe('dateClick', function() {
 
               initCalendar(options)
 
-              // the middle is 2014-05-28T09:00:00 (regardless of isRTL)
+              // the middle is 2014-05-28T09:00:00 (regardless of isRtl)
               var slotRow = $('.fc-slats tr:eq(18) td:not(.fc-time)')
 
               // for simulating the mousedown/mouseup/click (relevant for selectable)
@@ -106,7 +106,7 @@ describe('dateClick', function() {
 
               initCalendar(options)
 
-              // the middle is 2014-05-28T11:00:00 (regardless of isRTL)
+              // the middle is 2014-05-28T11:00:00 (regardless of isRtl)
               var slotRow = $('.fc-slats tr:eq(18) td:not(.fc-time)')
 
               // for simulating the mousedown/mouseup/click (relevant for selectable)
@@ -134,7 +134,7 @@ describe('dateClick', function() {
 
       initCalendar(options)
 
-      var dayCell = $('.fc-day:eq(10)') // 2014-05-07 (regardless of isRTL)
+      var dayCell = $('.fc-day:eq(10)') // 2014-05-07 (regardless of isRtl)
 
       // for simulating the mousedown/mouseup/click (relevant for selectable)
       dayCell.simulate('drag', {
@@ -178,7 +178,7 @@ describe('dateClick', function() {
 
       initCalendar(options)
 
-      var dayCell = $('.fc-day:eq(10)') // 2014-05-07 (regardless of isRTL)
+      var dayCell = $('.fc-day:eq(10)') // 2014-05-07 (regardless of isRtl)
       $.simulateTouchClick(dayCell)
     })
   })

+ 2 - 2
tests/automated/legacy/destroy.js

@@ -5,7 +5,7 @@ describe('destroy', function() {
   describe('when calendar is LTR', function() {
     it('cleans up all classNames on the root element', function() {
       initCalendar({
-        isRTL: false
+        isRtl: false
       })
       currentCalendar.destroy()
       expect($('#calendar')[0].className).toBe('')
@@ -15,7 +15,7 @@ describe('destroy', function() {
   describe('when calendar is RTL', function() {
     it('cleans up all classNames on the root element', function() {
       initCalendar({
-        isRTL: true
+        isRtl: true
       })
       currentCalendar.destroy()
       expect($('#calendar')[0].className).toBe('')

+ 2 - 2
tests/automated/legacy/eventLimit-popover.js

@@ -29,7 +29,7 @@ describe('eventLimit popover', function() {
 
     it('aligns horizontally with left edge of cell if LTR', function() {
       initCalendar({
-        isRTL: false
+        isRtl: false
       })
       init()
       var cellLeft = $('.fc-day-grid .fc-row:eq(0) .fc-bg td:not(.fc-axis):eq(2)').offset().left
@@ -40,7 +40,7 @@ describe('eventLimit popover', function() {
 
     it('aligns horizontally with left edge of cell if RTL', function() {
       initCalendar({
-        isRTL: true
+        isRtl: true
       })
       init()
       var cell = $('.fc-day-grid .fc-row:eq(0) .fc-bg td:not(.fc-axis):eq(4)')

+ 2 - 2
tests/automated/legacy/firstDay.js

@@ -159,10 +159,10 @@ describe('First Day', function() {
     })
   })
 
-  describe('when first day is set to Tuesday and isRTL is true', function() {
+  describe('when first day is set to Tuesday and isRtl is true', function() {
     pushOptions({
       firstDay: 2,
-      isRTL: true
+      isRtl: true
     })
     it('should put days mon, sun, sat ...', function() {
       initCalendar()

+ 3 - 3
tests/automated/legacy/header-rendering.js

@@ -69,15 +69,15 @@ describe('header rendering', function() {
   })
 
   describe('renders left and right literally', function() {
-    [ true, false ].forEach(function(isRTL) {
-      describe('when isRTL is ' + isRTL, function() {
+    [ true, false ].forEach(function(isRtl) {
+      describe('when isRtl is ' + isRtl, function() {
         pushOptions({
           header: {
             left: 'prev',
             center: 'today',
             right: 'next'
           },
-          isRTL: isRTL
+          isRtl: isRtl
         })
         it('should have prev in left', function() {
           initCalendar()

+ 4 - 4
tests/automated/legacy/isRTL.js

@@ -1,10 +1,10 @@
-describe('isRTL', function() {
+describe('isRtl', function() {
 
   it('has it\'s default value computed differently based off of the locale', function() {
     initCalendar({
       locale: 'ar' // Arabic is RTL
     })
-    expect(currentCalendar.getOption('isRTL')).toEqual(true)
+    expect(currentCalendar.getOption('isRtl')).toEqual(true)
   })
 
   // NOTE: don't put tests related to other options in here!
@@ -12,14 +12,14 @@ describe('isRTL', function() {
 
   it('adapts to dynamic option change', function() {
     initCalendar({
-      isRTL: false
+      isRtl: false
     })
     var $el = $(currentCalendar.el)
 
     expect($el).toHaveClass('fc-ltr')
     expect($el).not.toHaveClass('fc-rtl')
 
-    currentCalendar.setOption('isRTL', true)
+    currentCalendar.setOption('isRtl', true)
 
     expect($el).toHaveClass('fc-rtl')
     expect($el).not.toHaveClass('fc-ltr')

+ 3 - 3
tests/automated/legacy/nowIndicator.js

@@ -38,11 +38,11 @@ describe('now indicator', function() {
         options.nowIndicator = true
       });
 
-      [ false, true ].forEach(function(isRTL) {
+      [ false, true ].forEach(function(isRtl) {
 
-        describe('when ' + (isRTL ? 'RTL' : 'LTR'), function() {
+        describe('when ' + (isRtl ? 'RTL' : 'LTR'), function() {
           beforeEach(function() {
-            options.isRTL = isRTL
+            options.isRtl = isRtl
           })
 
           it('doesn\'t render when out of view', function() {

+ 5 - 5
tests/automated/legacy/select-callback.js

@@ -14,10 +14,10 @@ describe('select callback', function() {
     currentCalendar.destroy()
   });
 
-  [ false, true ].forEach(function(isRTL) {
-    describe('when isRTL is ' + isRTL, function() {
+  [ false, true ].forEach(function(isRtl) {
+    describe('when isRtl is ' + isRtl, function() {
       beforeEach(function() {
-        options.isRTL = isRTL
+        options.isRtl = isRtl
       })
       describe('when in month view', function() {
         beforeEach(function() {
@@ -113,7 +113,7 @@ describe('select callback', function() {
             spyOn(options, 'select').and.callThrough()
             initCalendar(options)
             $('.fc-agenda-view .fc-day-grid .fc-day:eq(3)').simulate('drag', { // will be 2014-05-28 for LTR and RTL
-              dx: $('.fc-sun').outerWidth() * (isRTL ? -1 : 1), // the width of one column
+              dx: $('.fc-sun').outerWidth() * (isRtl ? -1 : 1), // the width of one column
               callback: function() {
                 expect(options.select).toHaveBeenCalled()
                 done()
@@ -206,7 +206,7 @@ describe('select callback', function() {
             spyOn(options, 'select').and.callThrough()
             initCalendar(options)
             $('.fc-slats tr:eq(18) td:not(.fc-time)').simulate('drag', { // middle will be 2014-05-28T09:00:00
-              dx: $('.fc-day-header:first').outerWidth() * 0.9 * (isRTL ? -1 : 1), // one day ahead
+              dx: $('.fc-day-header:first').outerWidth() * 0.9 * (isRtl ? -1 : 1), // one day ahead
               dy: $('.fc-slats tr:eq(18)').outerHeight() * 2, // move down two slots
               callback: function() {
                 expect(options.select).toHaveBeenCalled()

+ 3 - 3
tests/automated/legacy/select-method.js

@@ -17,10 +17,10 @@ describe('select method', function() {
     - for basic/month views, when given timed dates, should really be all-day
   */
 
-  [ false, true ].forEach(function(isRTL) {
-    describe('when isRTL is ' + isRTL, function() {
+  [ false, true ].forEach(function(isRtl) {
+    describe('when isRtl is ' + isRtl, function() {
       beforeEach(function() {
-        options.isRTL = isRTL
+        options.isRtl = isRtl
       })
       describe('when in month view', function() {
         beforeEach(function() {

+ 2 - 2
tests/automated/legacy/weekLabel.js

@@ -31,7 +31,7 @@ describe('weekLabel', function() {
 
       it('renders correctly when customized and LTR', function() {
         initCalendar({
-          isRTL: false,
+          isRtl: false,
           weekLabel: 'YO'
         })
         expect(getRenderedWeekNumberTitle()).toBe('YO')
@@ -39,7 +39,7 @@ describe('weekLabel', function() {
 
       it('renders correctly when customized and RTL', function() {
         initCalendar({
-          isRTL: true,
+          isRtl: true,
           weekLabel: 'YO'
         })
         expect(getRenderedWeekNumberTitle()).toBe('YO')

+ 6 - 6
tests/automated/lib/dom-geom.js

@@ -33,7 +33,7 @@ export function getBoundingRect(el) {
 }
 
 
-export function getLeadingBoundingRect(els, isRTL) {
+export function getLeadingBoundingRect(els, isRtl) {
   els = $(els)
   expect(els.length).toBeGreaterThan(0)
   let best = null
@@ -41,7 +41,7 @@ export function getLeadingBoundingRect(els, isRTL) {
     const rect = getBoundingRect(node)
     if (!best) {
       best = rect
-    } else if (isRTL) {
+    } else if (isRtl) {
       if (rect.right > best.right) {
         best = rect
       }
@@ -55,7 +55,7 @@ export function getLeadingBoundingRect(els, isRTL) {
 }
 
 
-export function getTrailingBoundingRect(els, isRTL) {
+export function getTrailingBoundingRect(els, isRtl) {
   els = $(els)
   expect(els.length).toBeGreaterThan(0)
   let best = null
@@ -63,7 +63,7 @@ export function getTrailingBoundingRect(els, isRTL) {
     const rect = getBoundingRect(node)
     if (!best) {
       best = rect
-    } else if (isRTL) {
+    } else if (isRtl) {
       if (rect.left < best.left) {
         best = rect
       }
@@ -77,12 +77,12 @@ export function getTrailingBoundingRect(els, isRTL) {
 }
 
 
-export function sortBoundingRects(els, isRTL) {
+export function sortBoundingRects(els, isRtl) {
   const rects = els.map(function(i, node) {
     return getBoundingRect(node)
   })
   rects.sort(function(a, b) {
-    if (isRTL) {
+    if (isRtl) {
       return b.right - a.right
     } else {
       return a.left - b.left

+ 4 - 4
tests/manual/day_render.html

@@ -9,12 +9,12 @@
 <script>
 
   $(document).ready(function() {
-  
+
     var date = new Date();
     var d = date.getDate();
     var m = date.getMonth();
     var y = date.getFullYear();
-    
+
     $('#calendar').fullCalendar({
 
       dayRender: function(date, td) {
@@ -27,7 +27,7 @@
       },
       weekNumbers: true,
       //selectable: true,
-      //isRTL: true,
+      //isRtl: true,
 
       header: {
         left: 'prev,next today',
@@ -82,7 +82,7 @@
         }
       ]
     });
-    
+
   });
 
 </script>

+ 2 - 2
tests/manual/droppable.html

@@ -27,7 +27,7 @@
       
       //firstDay: 1,
       //hiddenDays: [ 4, 6 ], // hide thursday and saturday
-      //isRTL: true,
+      //isRtl: true,
       //minTime: '6:30am',
       
       header: {
@@ -92,7 +92,7 @@
     $('#sortable-events').sortable();
     
     $('#calendar2').fullCalendar({
-      //isRTL: true,
+      //isRtl: true,
       droppable: true,
       dropAccept: '.for-calendar2',
       /*

+ 6 - 6
tests/manual/dynamic-options.html

@@ -12,7 +12,7 @@
 
   $(document).ready(function() {
     var theme = false;
-    var isRTL = false;
+    var isRtl = false;
     var businessHours = false;
 
     $('#change-theme-button').on('click', function() {
@@ -21,8 +21,8 @@
     });
 
     $('#change-dir-button').on('click', function() {
-      isRTL = !isRTL;
-      $('#calendar').fullCalendar('option', 'isRTL', isRTL);
+      isRtl = !isRtl;
+      $('#calendar').fullCalendar('option', 'isRtl', isRtl);
     });
 
     $('#change-businessHours-button').on('click', function() {
@@ -32,18 +32,18 @@
 
     $('#change-all-button').on('click', function() {
       theme = !theme;
-      isRTL = !isRTL;
+      isRtl = !isRtl;
       businessHours = !businessHours;
       $('#calendar').fullCalendar('option', {
         theme: theme,
-        isRTL: isRTL,
+        isRtl: isRtl,
         businessHours: businessHours
       });
     });
 
     $('#calendar').fullCalendar({
       theme: theme,
-      isRTL: isRTL,
+      isRtl: isRtl,
       businessHours: businessHours,
       header: {
         left: 'prev,next today',

+ 1 - 1
tests/manual/hiddenDays.html

@@ -27,7 +27,7 @@
       month: 6, // july
 
       //weekNumbers: true,
-      isRTL: true,
+      isRtl: true,
       //selectable: true,
       //firstDay: 2,
       //weekends: false,

+ 1 - 1
tests/manual/issue_740_event_resizing.html

@@ -23,7 +23,7 @@
       },
       weekends: false,
       //firstDay: 1,
-      //isRTL: true,
+      //isRtl: true,
       editable: true,
       events: [
         {

+ 1 - 1
tests/manual/issue_757_removeEvents.html

@@ -22,7 +22,7 @@
         right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
       },
       editable: true,
-      //isRTL: true,
+      //isRtl: true,
       year: 2011,
       month: 0,
       events: [

+ 1 - 1
tests/manual/locale.html

@@ -30,7 +30,7 @@
       
       editable: true,
       
-      isRTL: true,
+      isRtl: true,
       firstDay: 1,
       //weekends: false,
       //hiddenDays: [ 4 ], // hide thursday

+ 1 - 1
tests/manual/options.html

@@ -78,7 +78,7 @@
       //dayClick: function(date) {
       //  console.log(date);
       //},
-      //isRTL: true,
+      //isRtl: true,
 
       eventColor: 'green',
       eventTextColor: 'yellow',

+ 1 - 1
tests/manual/selectable.html

@@ -28,7 +28,7 @@
       defaultView: 'month',
       
       //firstDay: 1,
-      //isRTL: true,
+      //isRtl: true,
       //minTime: 7,
       //weekends: false,
       //allDaySlot: false,

+ 6 - 6
tests/manual/slot_event_overlap.html

@@ -60,7 +60,7 @@
       month: 6, // July
       date: 31,
       events: 'slot_event_overlap.json',
-      isRTL: true,
+      isRtl: true,
       _eventsPositioned: function() {
         testOverlap($('#calendar-rtl'), true, true);
       }
@@ -79,7 +79,7 @@
       month: 6, // July
       date: 31,
       events: 'slot_event_overlap.json',
-      isRTL: true,
+      isRtl: true,
       slotEventOverlap: false,
       _eventsPositioned: function() {
         testOverlap($('#calendar-rtl-nooverlap'), false, true);
@@ -88,8 +88,8 @@
     
   });
 
-  function testOverlap(el, allowOverlap, isRTL) {
-    if (_testOverlap(el, allowOverlap, isRTL)) {
+  function testOverlap(el, allowOverlap, isRtl) {
+    if (_testOverlap(el, allowOverlap, isRtl)) {
       el.prev('h2').find('span').css('color', 'green').text('passed');
     }
     else {
@@ -97,7 +97,7 @@
     }
   }
 
-  function _testOverlap(el, allowOverlap, isRTL) {
+  function _testOverlap(el, allowOverlap, isRtl) {
 
     var events = el.find('.fc-event');
 
@@ -131,7 +131,7 @@
 
       if (allowOverlap) {
         width /= 2; // make sure nothing overlaps the first half of the event
-        if (isRTL) {
+        if (isRtl) {
           left += width;
         }
       }

+ 1 - 1
tests/manual/stacking.html

@@ -28,7 +28,7 @@
 
       editable: true,
 
-      //isRTL: true,
+      //isRtl: true,
       //hiddenDays: [ 3 ],
 
       /*

+ 1 - 1
tests/manual/triggers.html

@@ -33,7 +33,7 @@
         right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
       },
       editable: true,
-      //isRTL: true,
+      //isRtl: true,
 
       viewDisplay: function(view) {
         console.log('viewDisplay');

+ 1 - 1
tests/manual/week_numbers.html

@@ -26,7 +26,7 @@
 
       firstDay: 1,
       selectable: true,
-      //isRTL: true,
+      //isRtl: true,
       //theme: true,
 
       editable: true,