Class: Ticker

Ticker

new Ticker ()

Extends

Methods

emit a event

Name Type Description
type String

event type, evnet name

Returns:
Type Description
this this

off (type, fn)this inherited

proxy removeEventListener function

Name Type Description
type String

event type, evnet name

fn function

callback, which you had bind before

Returns:
Type Description
this this

on (type, fn)this inherited

proxy addEventListener function

Name Type Description
type String

event type, evnet name

fn function

callback

Returns:
Type Description
this this

once (type, fn)this inherited

binding a once event, just emit once time

Name Type Description
type String

event type, evnet name

fn function

callback

Returns:
Type Description
this this

start ()

start tick loop

stop ()

stop tick loop