 
       #
       # @event
-      # @name resetAutocomplete
+      # @name reset-mac-autocomplete
       # @description
       # Event to reset autocomplete
       #
-      $scope.$on "resetAutocomplete", -> reset()
+      $scope.$on "reset-mac-autocomplete", -> reset()
 ]

  "$parse"
  "$rootScope"
  "keys"
  ($http, $filter, $compile, $timeout, $parse, $rootScope, keys) ->
    restrict:    "E"
    templateUrl: "template/autocomplete.html"
    replace:     true

      timeoutId           = null
      onSelectBool        = false

      $menuScope       = $rootScope.$new(true)
      $menuScope.items = []
      $menuScope.index = 0

