From b496488568fd5a00e36f5d3b7b4f9a0db6ac204b Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Wed, 2 May 2012 01:46:25 -0400 Subject: cleanups --- alias-angular/app/js/directives.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'alias-angular/app/js/directives.js') diff --git a/alias-angular/app/js/directives.js b/alias-angular/app/js/directives.js index ffa618c..d650c23 100644 --- a/alias-angular/app/js/directives.js +++ b/alias-angular/app/js/directives.js @@ -3,14 +3,10 @@ angular.module('Alias.directives', []). - directive('navTabs', function($log) { - var directiveDefinition = { - restrict: 'C', - link: function(scope, elm, attrs) { - elm.on('click', function(event) { - event.preventDefault(); - }); - } + directive('navTabs', function() { + return function(scope, elm, attrs) { + elm.on('click', function(event) { + event.preventDefault(); + }); }; - return directiveDefinition; }); -- cgit v1.2.3-70-g09d2