As mentioned that does work. But I need to be able to handle it like this because it allows the script to extends objects which callbacks.
For example: say we have the internslly declared function template "Button". When a button I'd created the C++ program handles mouse clicks so it will know when the button is clicked. However it may be optional as to whether the script writer handles a click. So I use the field "Button.onclick" which when set overwrites an empty internal handler which the C++ code sees and when get'd returns the function. It isn't obvious from the code posting (it is a very heavily simplified version of the original code) but the idea is that I don't need to keep getting the property "update" whenever an update is required because the callback is automatically set - thus making access to that callback a lot quicker when it's actually needed. -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
