/*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ /** * Prevents the default behavior of the click. For instance useful if a link should only work in case the user * does a "right click open in new window". * * Example * my link */ (function () { angular.module('piwikApp.directive').directive('piwikIgnoreClick', piwikIgnoreClick); /** * @deprecated */ function piwikIgnoreClick() { return function(scope, element, attrs) { $(element).click(function(event) { event.preventDefault(); }); }; } })();