Revision 23,
470 bytes
checked in by niltonneto, 17 years ago
(diff) |
* empty log message *
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[20] | 1 | // Instant Messenger |
---|
| 2 | // im_sincro.js |
---|
| 3 | |
---|
| 4 | function Sincro() |
---|
| 5 | { |
---|
| 6 | this.wait = 15000; // 15 segundos |
---|
| 7 | this.count = 0; // para atualização da lista |
---|
| 8 | |
---|
| 9 | } |
---|
| 10 | |
---|
| 11 | Sincro.prototype.synchronize = function() |
---|
| 12 | { |
---|
| 13 | if ( this.count++ < 4 ) |
---|
[23] | 14 | IM.getMessage(); |
---|
| 15 | else |
---|
| 16 | IM.UpdateContacts(); |
---|
[20] | 17 | |
---|
| 18 | setTimeout("Sincro.synchronize()", this.wait); |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | // Build Object |
---|
| 22 | var Sincro = new Sincro(); |
---|
| 23 | messages_timeout = setTimeout("Sincro.synchronize()",Sincro.wait); |
---|
Note: See
TracBrowser
for help on using the repository browser.