| author | Eckhart Koeppen <eckhart.koppen@nokia.com> |
| Thu, 29 Apr 2010 15:15:16 +0300 | |
| branch | RCL_3 |
| changeset 16 | 4b6ee5efea19 |
| parent 0 | 1918ee327afb |
| permissions | -rw-r--r-- |
| 0 | 1 |
function Object(timer, editor) |
2 |
{
|
|
3 |
this.editor = editor; |
|
4 |
this.counter = 0; |
|
5 |
timer.timeout.connect(notify); |
|
6 |
timer.timeout.connect(this, this.addLine); |
|
7 |
} |
|
8 |
||
9 |
Object.prototype.addLine = function() |
|
10 |
{
|
|
11 |
this.editor.append(this.counter); |
|
12 |
this.counter += 1; |
|
13 |
} |
|
14 |
||
15 |
function notify() |
|
16 |
{
|
|
17 |
print("timeout() received");
|
|
18 |
} |