diff options
| author | Misko Hevery | 2011-10-07 11:27:49 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-10-11 11:01:46 -0700 |
| commit | fd822bdaf9d04e522aaa5400b673f333190abe98 (patch) | |
| tree | 451cd26d3f7da862692d6c56e6e8f235824c180a /docs/content/cookbook/mvc.ngdoc | |
| parent | 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (diff) | |
| download | angular.js-fd822bdaf9d04e522aaa5400b673f333190abe98.tar.bz2 | |
chore(formating): clean code to be function() {
Diffstat (limited to 'docs/content/cookbook/mvc.ngdoc')
| -rw-r--r-- | docs/content/cookbook/mvc.ngdoc | 8 |
1 files changed, 4 insertions, 4 deletions
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. </div> </doc:source> <doc:scenario> - it('should play a game', function(){ + it('should play a game', function() { piece(1, 1); expect(binding('nextMove')).toEqual('O'); piece(3, 1); |
