       if inside
         element.after $compile(menuEl) $menuScope
       else
-        $(document.body).append $compile(menuEl) $menuScope
+        angular.element(document.body).append $compile(menuEl) $menuScope
 
       #
       # @event


        reset()

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


        return true

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

