From fd822bdaf9d04e522aaa5400b673f333190abe98 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 7 Oct 2011 11:27:49 -0700 Subject: chore(formating): clean code to be function() { --- docs/content/cookbook/mvc.ngdoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/content/cookbook/mvc.ngdoc') diff --git a/docs/content/cookbook/mvc.ngdoc b/docs/content/cookbook/mvc.ngdoc index 4529cd29..a9ab7f3c 100644 --- a/docs/content/cookbook/mvc.ngdoc +++ b/docs/content/cookbook/mvc.ngdoc @@ -36,7 +36,7 @@ no connection between the controller and the view. this.setUrl(); } }, - reset: function(){ + reset: function() { this.board = [ ['', '', ''], ['', '', ''], @@ -46,7 +46,7 @@ no connection between the controller and the view. this.winner = ''; this.setUrl(); }, - grade: function(){ + grade: function() { var b = this.board; this.winner = row(0) || row(1) || row(2) || @@ -57,7 +57,7 @@ no connection between the controller and the view. function diagonal(i) { return same(b[0][1-i], b[1][1], b[2][1+i]);} function same(a, b, c) { return (a==b && b==c) ? a : '';}; }, - setUrl: function(){ + setUrl: function() { var rows = []; angular.forEach(this.board, function(row){ rows.push(row.join(',')); @@ -91,7 +91,7 @@ no connection between the controller and the view. - it('should play a game', function(){ + it('should play a game', function() { piece(1, 1); expect(binding('nextMove')).toEqual('O'); piece(3, 1); -- cgit v1.2.3