I'm getting an error:

```
TypeError: Cannot read property 'x' of undefined

```

Heres my directive called `tooltip`:

```
.directive('tooltip', function() {
return {
    restrict: 'A',
    controller: function($scope) {
      $scope.enter = function(evt) {
          console.log('x: ' + evt.x + ', y: ' + evt.y);
      };
    },
    link: function(scope, element, attrs) {
      element.bind("mouseenter", function() {
        scope.$apply(attrs.tooltip);
      });

    }
}

```

});

**HTML:**

```
<svg>
  <g pathing tooltip="enter($event)">
   ...
  </g>
</svg>

```