> On Mon, 24 Nov 2008 03:03:51 am august wrote:
> > My problem is that I get a segfault if the onmousedown is called when
> > it hasn't been set in the javascript. ? Is there anyway to tell from the
> > C++ side if the onmousedown function has been set in the ecmascript?
> 
> Do you mean
>       if (!onmousedown.IsEmpty() && ...)
>       {
        >       }



disco!   that was it.



but, this brings me to another question.

In this setup, what is the difference between:

onmousedown.IsEmpty()  // which works

        and

onmousedown->IsEmpty() // which doesn't work
                                                        //  even though I do 
onmousedown->Call()



I see in the v8.h file that the -> operator is overloaded....but I
don't really see (yet)  why.  Is there any other form of doku besides
the header file?


        many many thanks!   -august.



--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to