That won't work. There's no (good) way to export writeable properties. You could
(a) Create a function like setOnReady() and export that (or something
similar). This requires a change in your API.
(b) Change the various internal code to refer to foo['onReady']
(c) Add an extern for onReady for that type. I'm not 100% sure it'll
work, but I think it should. This ought to generate equivalent code to
(b).
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Closure Compiler Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
closure-compiler-d...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>