Function call issue

edited August 2013 in Newbie Questions
I got this error when I try to run this code Uncaught TypeError:object en has no method 'mafoction'
imeReady2 : function(imeObject)
{

     alert("----------R E A D Y-----------");
        var ready = true;
        if (ready)
        {
     document.getElementById("app_input").focus();
        }
        ime.setKeyFunc(tvKey.KEY_DOWN, function(keyCode) {var ime2 = new IMEShell("app_input2", this.mafonction() , 'en');});},
mafonction : function(){bla bla}
it works when I call an anonymous function instead of mafonction() !

Comments

Sign In or Register to comment.