>
> function addGadget() {
> var newSpecUrl =
> document.getElementById('newGadgetUrl').value;
> // alert( "about to add gadget from: " +
> newSpecUrl );
> shindig.container.addGadget(
>
> shindig.container.createGadget({specUrl: newSpecUrl}));
> document.getElementById('newGadgetUrl').value
> = "";
> renderGadgets();
> }
So, I changed my addGadget() function to include this
shindig.container.gadgets_ = {};
before calling shindig.container.addGadget, and renderGadgets(). Now
I get the behavior I expected (at least in the sense of getting the
two gadgets rendered and nothing else). I'm assuming this means that a
call to renderGadgets() renders everything currently in the container,
but does *not* do any clearing of already rendered gadgets. Does that
sound right? If so, that does still leave me wondering... in the
original scenario, why was the "extra" gadget empty and not a
duplicate of the already rendered horoscope gadget?
Or is there still something fundamental that I'm missing here?
Thanks,
Phil