Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Firefox (Read 1902 times)
KBalquis
YaBB Newbies
*
Offline


Senior developer

Posts: 12
Joined: Nov 19th, 2007
Firefox
Dec 3rd, 2007 at 9:24am
Print Post  
Hello,
I am using the following code:
    function ArrowCreated(arrow)
    {
       alert('event fired successfully');
       alert(arrow.getOrigin.getTag());
};

when running under IE, it works fine,
when running under Firefox (1.5.0.2 & 2.0.0.9), I only get the message 'event fired successfully', but I don't get the second message.

Please advise,
Kind regards.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Firefox
Reply #1 - Dec 3rd, 2007 at 10:12am
Print Post  
Hi,

This happens because Firefox is more strict about the function-call syntax. Insert () after getOrigin and it should work fine:

alert(arrow.getOrigin().getTag());

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint