setInterval exits after first iteration. Please help me rectify this snippet?
<p>Can someone help me rectify the issue related to the <code>setInterval</code>? I'm fairly new to JavaScript, I'm not sure what's wrong here. I have this block in my page:</p>

<pre><code>GlobalTicker.prototype.TickElements = function () {
    this.timer = setInterval(this.initializeElement.apply(this) , 1000);
};
GlobalTicker.prototype.initializeElement = function () {
    for (var i = 0; i &lt; this.tickerElements.length; i++) {
        var existingRun = this.tickerElements[i].secs;
        var elementId = $('#' + this.tickerElements[i].id + ' .comment-editor').find('.ticker');
        existingRun -= 1;
        $(elementId).text(existingRun);
        if (existingRun === 0) {
            $(elementId).remove();
            this.tickerElements.splice(i, 1);
            if (this.tickerElements.length == 0) clearInterval(this.tickerElements.timer);
        }
    }
};
</code></pre>

<p>Then somewhere in the code, I have this call in a function</p>

<pre><code>var objTicker = new GlobalTicker();
CommentManagement.prototype.createComment = function (domObject) {
    objTicker.TickElements();
};
</code></pre>

<p>This function call actually invokes the <code>setInterval</code> function and runs the first iteration and jumps to the <code>initialiseComment();</code> but once this block is executed, on the next interval, instead of executing the <code>initialiseComment();</code> again, it jumps back to my function call <code>CreateComment();</code>. What am I doing wrong here? </p>
