 
         reset()
 
-      element.on "keydown", (event) ->
+      element.bind "keydown", (event) ->
         switch event.which
           when keys.DOWN
             $scope.$apply ->

      if inside
        element.after $compile(menuEl) $menuScope
      else
        $(document.body).append $compile(menuEl) $menuScope

      #
      # @event


        return true

      angular.element(document).bind "click", (event) ->
        if $menuScope.items.length > 0
          $scope.$apply -> reset()

