legend does not refresh

Discussion created by gschiopu on Jan 10, 2011
Latest reply on Nov 4, 2011 by amarsden
I'm using version 10 or lower and my map services are publicly accessible
API Reference says:
" The legend automatically updates if the visibility of a layer or sublayer changes."
...but it does not seem to work in my example pasted here

It does draw the legend for the one layer turned on on start-up but then it never refreshes?!
I'm not using any layersInfo
"Calling refresh is only necessary when layerInfos is used in the Legend constructor, otherwise the legend will refresh the layers automatically."

Thank you for any suggestions