### Set a progress to the element @namespace Lungo.Element @method Menu @author Javier Jimenez Villar || @soyjavi ### Lungo.Element.Menu = do (lng = Lungo) -> C = lng.Constants ### Displays the with a determinate Id @method show @param {string} Id ### show = (id) -> element = @_instance id if element then element.addClass C.CLASS.SHOW ### Hides the with a determinate Id @method hide @param {string} Id ### hide = (id) -> element = @_instance id if element then element.removeClass C.CLASS.SHOW ### Toggles the with a determinate Id @method toggle @param {string} Id ### toggle = (id) -> element = @_instance id if element if element.hasClass C.CLASS.SHOW then @show id else @hide id _instance: (id) -> Lungo.dom "#{C.CONTROL.MENU}##{id}" show : show hide : hide toggle: toggle