@@ -168,8 +168,8 @@ Module.register("calendar", {
168168
169169 this . selfUpdate ( ) ;
170170 } ,
171- notificationReceived ( notification , payload , sender ) {
172171
172+ notificationReceived ( notification , payload , sender ) {
173173 if ( notification === "FETCH_CALENDAR" ) {
174174 if ( this . hasCalendarURL ( payload . url ) ) {
175175 this . sendSocketNotification ( notification , { url : payload . url , id : this . identifier } ) ;
@@ -217,7 +217,6 @@ Module.register("calendar", {
217217
218218 // Override dom generator.
219219 getDom ( ) {
220- const ONE_SECOND = 1000 ; // 1,000 milliseconds
221220 const events = this . createEventList ( true ) ;
222221 const wrapper = document . createElement ( "table" ) ;
223222 wrapper . className = this . config . tableClass ;
@@ -308,15 +307,12 @@ Module.register("calendar", {
308307 }
309308
310309 const symbolClass = this . symbolClassForUrl ( event . url ) ;
311- symbolWrapper . className = `symbol align-right ${ symbolClass } ` ;
310+ symbolWrapper . className = `symbol ${ symbolClass } ` ;
312311
313312 const symbols = this . symbolsForEvent ( event ) ;
314- symbols . forEach ( ( s , index ) => {
313+ symbols . forEach ( ( s ) => {
315314 const symbol = document . createElement ( "span" ) ;
316315 symbol . className = s ;
317- if ( index > 0 ) {
318- symbol . style . paddingLeft = "5px" ;
319- }
320316 symbolWrapper . appendChild ( symbol ) ;
321317 } ) ;
322318 eventWrapper . appendChild ( symbolWrapper ) ;
@@ -601,7 +597,6 @@ Module.register("calendar", {
601597 */
602598 createEventList ( limitNumberOfEntries ) {
603599 let now = moment ( ) ;
604- let today = now . clone ( ) . startOf ( "day" ) ;
605600 let future = now . clone ( ) . startOf ( "day" ) . add ( this . config . maximumNumberOfDays , "days" ) ;
606601
607602 let events = [ ] ;
0 commit comments