       @description
       Resetting autocomplete
       ###
-      reset = (invokeApply = false) ->
+      reset = ->
+        $menuScope.items.length = 0
+
+        hide()
+
+      hide = ->
         $animate.leave menuEl, ->
-          $menuScope.items = []
           $menuScope.index = 0
 
           # Clear menu element inline style

      Create a click handler function to make sure directive is unbinding
      the correct handler
      ###
      clickHandler = -> reset(true)

      ###
      @function


          when keys.ESCAPE
            $scope.$apply ->
              hide()

              event.preventDefault()

