@@ -168,7 +168,7 @@ Module.register("calendar", {
168168
169169 this . selfUpdate ( ) ;
170170 } ,
171- notificationReceived ( notification , payload , sender ) {
171+ notificationReceived ( notification , payload , sender ) {
172172
173173 if ( notification === "FETCH_CALENDAR" ) {
174174 if ( this . hasCalendarURL ( payload . url ) ) {
@@ -424,8 +424,8 @@ Module.register("calendar", {
424424 if ( this . config . showEnd ) {
425425 // andhas a duation
426426 if ( event . startDate !== event . endDate ) {
427- timeWrapper . innerHTML += "-" ;
428- timeWrapper . innerHTML += CalendarUtils . capFirst ( moment ( event . endDate , "x" ) . format ( this . config . dateEndFormat ) ) ;
427+ timeWrapper . innerHTML += "-" ;
428+ timeWrapper . innerHTML += CalendarUtils . capFirst ( moment ( event . endDate , "x" ) . format ( this . config . dateEndFormat ) ) ;
429429 }
430430 }
431431
@@ -435,7 +435,7 @@ Module.register("calendar", {
435435 event . endDate -= ONE_SECOND ;
436436 timeWrapper . innerHTML = CalendarUtils . capFirst ( moment ( event . startDate , "x" ) . format ( this . config . fullDayEventDateFormat ) ) ;
437437 // only show end if requested and allowed and the dates are different
438- if ( this . config . showEnd && ! this . config . showEndsOnlyWithDuration && moment ( event . startDate , "x" ) . format ( "YYYYMMDD" ) !== moment ( event . endDate , "x" ) . format ( "YYYYMMDD" ) ) {
438+ if ( this . config . showEnd && ! this . config . showEndsOnlyWithDuration && moment ( event . startDate , "x" ) . format ( "YYYYMMDD" ) !== moment ( event . endDate , "x" ) . format ( "YYYYMMDD" ) ) {
439439 timeWrapper . innerHTML += "-" ;
440440 timeWrapper . innerHTML += CalendarUtils . capFirst ( moment ( event . endDate , "x" ) . format ( this . config . fullDayEventDateFormat ) ) ;
441441 }
@@ -896,10 +896,8 @@ Module.register("calendar", {
896896 let p = this . getCalendarProperty ( url , property , defaultValue ) ;
897897 if ( property === "symbol" || property === "recurringSymbol" || property === "fullDaySymbol" ) {
898898 const className = this . getCalendarProperty ( url , "symbolClassName" , this . config . defaultSymbolClassName ) ;
899- if ( p instanceof Array )
900- p . push ( className )
901- else
902- p = className + p ;
899+ if ( p instanceof Array ) p . push ( className ) ;
900+ else p = className + p ;
903901 }
904902
905903 if ( ! ( p instanceof Array ) ) p = [ p ] ;
0 commit comments