Added jsdoc for legend control.