Adam Shaw %!s(int64=8) %!d(string=hai) anos
pai
achega
7064fb47c9
Modificáronse 3 ficheiros con 4 adicións e 3 borrados
  1. 1 1
      src/common/ListenerMixin.ts
  2. 2 1
      src/common/Mixin.ts
  3. 1 1
      src/component/DayTableMixin.ts

+ 1 - 1
src/common/ListenerMixin.ts

@@ -23,7 +23,7 @@ let guid = 0;
 
 
 export default class ListenerMixin extends Mixin implements ListenerInterface {
 export default class ListenerMixin extends Mixin implements ListenerInterface {
 
 
-	listenerId: any = null
+	listenerId: any
 
 
 	/*
 	/*
 	Given an `other` object that has on/off methods, bind the given `callback` to an event by the given name.
 	Given an `other` object that has on/off methods, bind the given `callback` to an event by the given name.

+ 2 - 1
src/common/Mixin.ts

@@ -11,6 +11,7 @@ export default class Mixin {
 
 
 	/*
 	/*
 	will override existing methods
 	will override existing methods
+	TODO: remove! not used anymore
 	*/
 	*/
 	static mixOver(destClass) {
 	static mixOver(destClass) {
 		Object.getOwnPropertyNames(this.prototype).forEach((name) => { // copy methods
 		Object.getOwnPropertyNames(this.prototype).forEach((name) => { // copy methods
@@ -18,4 +19,4 @@ export default class Mixin {
 		});
 		});
 	}
 	}
 
 
-}
+}

+ 1 - 1
src/component/DayTableMixin.ts

@@ -22,7 +22,7 @@ Prerequisite: the object being mixed into needs to be a *Grid*
 */
 */
 export default class DayTableMixin extends Mixin implements DayTableInterface {
 export default class DayTableMixin extends Mixin implements DayTableInterface {
 
 
-	breakOnWeeks: boolean = false // should create a new row for each week?
+	breakOnWeeks: boolean // should create a new row for each week? not specified, so default is FALSY
 	dayDates: any // whole-day dates for each column. left to right
 	dayDates: any // whole-day dates for each column. left to right
 	dayIndices: any // for each day from start, the offset
 	dayIndices: any // for each day from start, the offset
 	daysPerRow: any
 	daysPerRow: any