От: | strelochnik | ||
Дата: | 04.06.09 16:17 | ||
Оценка: |
function someClass()
{
this.foo = function()
{
alert('foo');
this.bar();
setTimeout(this.foo,1000);
}
this.bar = function()
{
alert('bar');
}
this.foo();
}
window.onload = function() {new someClass();}