DescriptionWhen rendering a gadget inline, registerOnLoadHandler and runOnLoadHandlers are impacted : this two functions used an array "onLoadHandlers" to store and read the registered handlers and this is a locally variable. When rendering in iframe, the outside util and inside util are isolated, all theirs registered handler will be run. But when rendering inline, the inside util will rewrite the outside util due to the context merge issue described above, so the outside util's registered handler will not be run.
if make gadgets.util, there is only one gadgets.util, and iframe rendering can't be effected, as it still will create one in the gadget.
Patch Set 1 #
MessagesTotal messages: 3
|