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 /example/buzz/buzz.js | |
| parent | 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (diff) | |
| download | angular.js-fd822bdaf9d04e522aaa5400b673f333190abe98.tar.bz2 | |
chore(formating): clean code to be function() {
Diffstat (limited to 'example/buzz/buzz.js')
| -rw-r--r-- | example/buzz/buzz.js | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/example/buzz/buzz.js b/example/buzz/buzz.js index 40813d16..3f29d300 100644 --- a/example/buzz/buzz.js +++ b/example/buzz/buzz.js @@ -8,11 +8,11 @@ angular.service('myApplication', function($resource){        });  }, {inject:['$resource']}); -function BuzzController(){ +function BuzzController() {    this.$watch('$location.hashPath', this.userChange);  }  BuzzController.prototype = { -  userChange: function(){ +  userChange: function() {      this.userId = this.$location.hashPath;      this.activities = this.Activity.get({userId:this.userId});    }, @@ -22,7 +22,7 @@ BuzzController.prototype = {      if (activity.replies) {        activity.replies.show = !activity.replies.show;      } else { -      activity.replies = this.Activity.replies({userId:this.userId, activityId:activity.id}, function(){ +      activity.replies = this.Activity.replies({userId:this.userId, activityId:activity.id}, function() {          activity.replies.show = true;        });      } | 
