 
     addNode: (label, callback, data) ->
       style = data.style if data?
+      @_nodes = [] unless @_nodes?
       @_nodes.push {label: label, callback: callback, style: style}
 
     buildDOM: ->

        for key,style of node.style
          li.style[key] = style
        li.addEventListener "click", node.callback
        li.style.lineHeight = @g.zoomer.get "menuItemLineHeight"

        menuUl.appendChild li



      menuUl = document.createElement "ul"
      menuUl.className = "dropdown-menu"

      # dropdown menu
      for node in nodes
