From bbd87c9425ae984f632783b1f33f415ec1747ca6 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 22 Oct 2010 16:45:56 -0700 Subject: simplifying ng:click spec --- src/directives.js | 2 +- test/directivesSpec.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/directives.js b/src/directives.js index 829be3e1..148e1f86 100644 --- a/src/directives.js +++ b/src/directives.js @@ -205,7 +205,7 @@ angularWidget("@ng:repeat", function(expression, element){ * * Events that are handled via these handler are always configured not to propagate further. * - * TODO: maybe we should consider allowing users to control even propagation in the future. + * TODO: maybe we should consider allowing users to control event propagation in the future. */ angularDirective("ng:click", function(expression, element){ return function(element){ diff --git a/test/directivesSpec.js b/test/directivesSpec.js index 86540386..341e9031 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -172,7 +172,7 @@ describe("directives", function(){ }); describe('ng:click', function(){ - it('should fire event', function(){ + it('should get called on a click', function(){ var scope = compile('
'); scope.$eval(); expect(scope.$get('clicked')).toBeFalsy(); @@ -184,14 +184,14 @@ describe("directives", function(){ it('should stop event propagation', function() { var scope = compile('