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() { --- src/widgets.js | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/widgets.js') diff --git a/src/widgets.js b/src/widgets.js index e3c6906f..189dff29 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -49,7 +49,7 @@
overview | @@ -533,7 +533,7 @@ angularWidget("@ng:non-bindable", noop);
- it('should load templates', function(){ + it('should load templates', function() { element('.doc-example-live a:contains(overview)').click(); expect(element('.doc-example-live ng\\:view').text()).toMatch(/Developer Guide: Overview/); @@ -552,11 +552,11 @@ angularWidget('ng:view', function(element) { var template; var changeCounter = 0; - this.$on('$afterRouteChange', function(){ + this.$on('$afterRouteChange', function() { changeCounter++; }); - this.$watch(function(){return changeCounter;}, function() { + this.$watch(function() {return changeCounter;}, function() { var template = $route.current && $route.current.template; if (template) { //xhr's callback must be async, see commit history for more info @@ -669,7 +669,7 @@ angularWidget('ng:view', function(element) {