Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
larukedi edited this page Nov 17, 2014 · 2 revisions

Setting a timer

Usage: $l.timers.set({ id: id, timeout: timeout, reset: reset, ontick: fnc, state: state })

$l.timers.set({
    'id': 'test',
    'timeout': 500,
    'reset': true,
    'ontick': function(state) { console.log('tested'); },
    'state': 5
});

Removing a timer

Usage: $l.timers.remove(id)

$l.timers.remove('test');
Clone this wiki locally