           isMenuAppended = false
 
           element.unbind "blur", clickHandler
-
-        $scope.$apply() if invokeApply
 
         return
 

      @description
      Resetting autocomplete
      ###
      reset = (invokeApply = false) ->
        $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 = ->
        $scope.$apply -> hide()

      ###
      @function
