I have a class that was created like this: function T() { this.run = function() { if (typeof this.i === 'undefined') this.i = 0; if (this.i > 10) { // Destroy this instance } else { var t = this; this.i++; setTimeout( function() { t.run(); }, 1000); } } } Then I initialize it like var x = new T(); I'm not sure how to destroy this instance from within itself once if reaches 10 iterations. Also, I'm
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く