On Apr 15, 9:01 pm, Steve Clay <
st...@mrclay.org> wrote:
> Ole Laursen wrote:
> > The problem appears to be that G_vmlCanvasManager (which is needed to
> > add a canvas dynamically) is not properly setup until after init_ is
> > run. And init_ is run with an onreadystatechange event handler which
> > according the reporter is too late in IE8 standards mode
>
> Hmm, unless every JS library switches to using onreadystatechange for
> IE8 (or users poll until their canvas elements have getContext), this
> could become a big problem, no?
Yes. It remains a problem with statically generated canvases, the
whole emulation without you doing anything breaks down. My idea only
works with dynamically generated canvases where you have to init the
elements yourself anyway.
> Could we allow the user to call init_ and make sure it only runs once?
I don't think the latter is a problem, it looks idempotent to me. OK,
so actually it might be a question of just calling init_ before using
any canvas stuff. It's already public.
I've opened an issue here, the docs should mention it:
http://code.google.com/p/explorercanvas/issues/detail?id=30
Ole