// Prevents the default action of an anchor when clicked.  
// Copyright (C) 2013 Qloo Inc., Michael Diolosa <michael.diolosa@gmail.com>  
// License: MIT

/*global angular:true, browser: true */

(function () {
  'use strict';

  // prevent-default
  // ---------------
  // Fix issue where clicks on links in angular templates do not allow for the
  // cancellation of a link's default action.
  angular.module('prevent-default', [])

  // Properties
  // ----------
  // Version
  .constant('version', '1.0.3')

  .directive('preventDefault', function () {
    return {
      restrict: 'A',
      link: function (scope, element, attrs) {
        element.bind('click', function (event) {
          // I assume due to a bug in AngularJS, we have to call both
          // `preventDefault` and `stopPropagation` for the default link action
          // to be cancelled.
          event.preventDefault();
          event.stopPropagation();
        });
      }
    };
  });
}());
@@ -260,24 +260,203 @@
 -----------%0A
+  angular.module('prevent-default', %5B%5D)%0A%0A  // Properties%0A  // ----------%0A  // Version%0A  .constant('version', '1.0.3')%0A%0A  // preventDefault Directive%0A  // ------------------------%0A
   // Fix iss
@@ -572,127 +572,8 @@
 on.%0A
-  angular.module('prevent-default', %5B%5D)%0A%0A  // Properties%0A  // ----------%0A  // Version%0A  .constant('version', '1.0.3')%0A%0A
   .d

Fix documentation