Removed @return from comment block for the toggleVisibility method