Re: Problem in using cutechatstandalone messanger

  •  05-31-2010, 3:22 AM

    Re: Problem in using cutechatstandalone messanger

    Hi,
     
    We can't reproducet this error.
     
    Can you change the code , and do some test ?
     
    You can open the CuteSoft_Client/CuteChat/Script/chatclient.js ,  line 222 ,  function _InvokeChatEvent(name,args)
     
    modify the function to :
     
    function _InvokeChatEvent(name,args)
    {
     var list=_chatEventMap[name];
     if(list==null)return;
     
     //so that if new handler attached , the handler should not handle this event.
     list=list.concat();
     
     if(args&&args.length)
     {
      for(var i=0;i<list.length;i++)
      {
       try
       {
        list[i].apply(window,args);
       }
       catch(x)
       {
        alert("Error on event : "+name+", "+x.message+" at "+_InvokeChatEvent.caller);
        alert("Event Handler : "+list[i]);
       }
      }
     }
     else
     {
      for(var i=0;i<list.length;i++)
      {
       list[i]();
      }
     }
    }
     
    When you get the error message box , please post the content (by CTRL+C on the box)
     
    Once we get the details, we can fix it quickly.
     
    Regards,
    Terry
View Complete Thread