Home Reference Source
public class | source

Timer

Extends:

react~React.ComponentEventDispatcher → Timer

Constructor Summary

Public Constructor
public

constructor(delay: *, repeatCount: *)

Member Summary

Public Members
public
public
public
public
public

Method Summary

Public Methods
public
public

kill()

public
public

reset()

public

start(): *

public

stop()

Inherited Summary

From class EventDispatcher
public

[prop]: *

public
public

A list of event listeners for this event dispatcher object.

public

typeCache: {}

public

addEventListener(context: *, type: *, listener: *)

Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.

public
public

dispatchEvent(event: *): boolean

Dispatches an event into the event flow.

public
public

getStyle(prop: *): *

Gets the value of the prop property on this object

public

Returns true if an event listener exists

public

Returns true if the class name to check is in the list of class names defined for this class.

public

kill()

Removes all event listeners

public

killArray(arr: *)

Given an array of event dispatchers, calls the kill method on each of them.

public

removeEventListener(type: *, listener: *)

Removes a listener from the EventDispatcher object.

public

setStyle(prop: *, val: *)

Sets the value of the prop property on this object

Public Constructors

public constructor(delay: *, repeatCount: *) source

Override:

EventDispatcher#constructor

Params:

NameTypeAttributeDescription
delay *
repeatCount *

Public Members

public currentCount: number source

public delay: number source

public repeatCount: number source

public running: boolean source

public timeoutObject: * source

Public Methods

public getClassNames(): string source

Override:

EventDispatcher#getClassNames

Return:

string

public kill() source

Removes all event listeners

Override:

EventDispatcher#kill

public onTimer() source

public reset() source

public start(): * source

Return:

*

public stop() source