Method
initialize
(timeInsSeconds: number, repeats: boolean, context: TContext, onTime: (timer: ITimer<TContext>)=>void)
Source from the content-addressed store, hash-verified
| 54 | } |
| 55 | |
| 56 | public initialize(timeInsSeconds: number, repeats: boolean, context: TContext, onTime: (timer: ITimer<TContext>)=>void){ |
| 57 | this._timeInSeconds = timeInsSeconds; |
| 58 | this._repeats = repeats; |
| 59 | this.context = context; |
| 60 | this._onTime = onTime.bind(context); |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * 空出对象引用,以便在js需要时GC可以清理它们的引用 |
Tested by
no test coverage detected