Appel de la méthode formulaire de setInterval() provoquant exception

Je voudrais appeler la fonction de setInterval(). Voici l'idée:

class Greeter {
    element: HTMLElement;
    span: HTMLElement;
    timerToken: number;

    constructor(element: HTMLElement) {
        this.element = element;
        this.element.innerHTML += "The time is: ";
        this.span = document.createElement('span');
        this.element.appendChild(this.span);
        this.span.innerText = new Date().toUTCString();
        //this.element.style.cssText = "-webkit-transform:rotate(7deg)";     
        //this.element.style.transition = "-webkit-transform: rotate(180deg)";         
    }

    start() {
        this.timerToken = setInterval(this.runningLoop(this.element), 500);        
    }

    stop() {
        clearTimeout(this.timerToken);
    }

    runningLoop(element: HTMLElement) {
        this.element.style.cssText = "-webkit-transform:rotate(7deg)";         
    }


}

window.onload = () => {
    var el = document.getElementById('content');
    var greeter = new Greeter(el);

    greeter.start();
};        

Dans ce cas j'obtiens une exception:

Exception non gérée à la ligne 13, colonne 9. Erreur d'exécution Microsoft JScript: argument non Valide.

J'ai donc essayé comme suit :

this.timerToken = setInterval(function () { this.runningLoop(this.element) }.bind, 500);

Pas une exception, mais rien ne se passe..

Des idées ?

OriginalL'auteur Jviaches | 2014-06-29