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() { --- example/buzz/buzz.js | 6 +++--- example/personalLog/scenario/personalLogScenario.js | 2 +- example/tweeter/tweeterclient.js | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'example') 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; }); } diff --git a/example/personalLog/scenario/personalLogScenario.js b/example/personalLog/scenario/personalLogScenario.js index 5baeeb1a..fe6388b4 100644 --- a/example/personalLog/scenario/personalLogScenario.js +++ b/example/personalLog/scenario/personalLogScenario.js @@ -10,7 +10,7 @@ describe('personal log', function() { }); - it('should create new logs and order them in reverse chronological order', function(){ + it('should create new logs and order them in reverse chronological order', function() { //create first msg input('newMsg').enter('my first message'); element('form input[type="submit"]').click(); diff --git a/example/tweeter/tweeterclient.js b/example/tweeter/tweeterclient.js index 84fc5ef7..9ad7eabc 100644 --- a/example/tweeter/tweeterclient.js +++ b/example/tweeter/tweeterclient.js @@ -1,7 +1,7 @@ -function noop(){} -$(document).ready(function(){ +function noop() {} +$(document).ready(function() { function xhr(method, url, data, callback){ - jQuery.getJSON(url, function(){ + jQuery.getJSON(url, function() { callback.apply(this, arguments); scope.updateView(); }); -- cgit v1.2.3