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

###

angular.module("Mac").directive "macAutocomplete", [
  "$http"
  "$filter"
  "$compile"

      timeoutId           = null
      onSelectBool        = false

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

