author | Eckhart Koeppen <eckhart.koppen@nokia.com> |
Wed, 28 Apr 2010 13:15:16 +0300 | |
branch | RCL_3 |
changeset 15 | b25b6dc3ff8b |
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 |
} |