style(docs/template): add in missing semicolons

Add semicolons where they were missing in the docs section per Google
code styling guide.

Closes #2736
This commit is contained in:
Eddie Monge 2013-05-21 14:52:38 -07:00 committed by Pete Bacon Darwin
parent 9d19b512e0
commit 18f14117de

View file

@ -70,7 +70,7 @@ docsApp.serviceFactory.fullTextSearch = ['$q', '$rootScope', function($q, $rootS
onReady : function() { onReady : function() {
this.ready = true; this.ready = true;
var self = this; var self = this;
self.deferReady.resolve(); self.deferReady.resolve();
if(!$rootScope.$$phase) { if(!$rootScope.$$phase) {
$rootScope.$apply(); $rootScope.$apply();
} }
@ -114,9 +114,9 @@ docsApp.serviceFactory.fullTextSearch = ['$q', '$rootScope', function($q, $rootS
if(groups[section].length < 15) { if(groups[section].length < 15) {
groups[section].push(item); groups[section].push(item);
} }
}) });
onReady(groups); onReady(groups);
}) });
} }
}; };
}]; }];
@ -134,8 +134,8 @@ docsApp.directive.focused = function($timeout) {
scope.$eval(attrs.focused + '=false'); scope.$eval(attrs.focused + '=false');
}); });
}); });
scope.$eval(attrs.focused + '=true') scope.$eval(attrs.focused + '=true');
} };
}; };
@ -175,7 +175,7 @@ docsApp.directive.sourceEdit = function(getEmbeddedTemplate) {
openPlunkr(sources); openPlunkr(sources);
}; };
} }
} };
function read(text) { function read(text) {
var files = []; var files = [];
@ -243,7 +243,7 @@ docsApp.directive.docTutorialReset = function() {
'</div>\n'); '</div>\n');
} }
}; };
} };
docsApp.serviceFactory.angularUrls = function($document) { docsApp.serviceFactory.angularUrls = function($document) {
@ -257,7 +257,7 @@ docsApp.serviceFactory.angularUrls = function($document) {
}); });
return urls; return urls;
} };
docsApp.serviceFactory.formPostData = function($document) { docsApp.serviceFactory.formPostData = function($document) {
@ -290,7 +290,7 @@ docsApp.serviceFactory.openPlunkr = function(templateMerge, formPostData, angula
var scriptDeps = ''; var scriptDeps = '';
angular.forEach(content.deps, function(file) { angular.forEach(content.deps, function(file) {
if (file.name !== 'angular.js') { if (file.name !== 'angular.js') {
scriptDeps += ' <script src="' + file.name + '"></script>\n' scriptDeps += ' <script src="' + file.name + '"></script>\n';
} }
}); });
indexProp = { indexProp = {
@ -307,7 +307,7 @@ docsApp.serviceFactory.openPlunkr = function(templateMerge, formPostData, angula
postData['files[index.html]'] = templateMerge(indexHtmlContent, indexProp); postData['files[index.html]'] = templateMerge(indexHtmlContent, indexProp);
postData['tags[]'] = "angularjs"; postData['tags[]'] = "angularjs";
postData.private = true; postData.private = true;
postData.description = 'AngularJS Example Plunkr'; postData.description = 'AngularJS Example Plunkr';
@ -426,7 +426,7 @@ docsApp.controller.DocsController = function($scope, $location, $window, $cookie
last: this.$last, last: this.$last,
active: page1 && this.currentPage == page1 || page2 && this.currentPage == page2 active: page1 && this.currentPage == page1 || page2 && this.currentPage == page2
}; };
} };
$scope.submitForm = function() { $scope.submitForm = function() {
$scope.bestMatch && $location.path($scope.bestMatch.page.url); $scope.bestMatch && $location.path($scope.bestMatch.page.url);
@ -625,7 +625,7 @@ docsApp.controller.DocsController = function($scope, $location, $window, $cookie
}, },
types: [], types: [],
filters: [] filters: []
} };
modules.push(module); modules.push(module);
} }
return module; return module;
@ -676,7 +676,7 @@ docsApp.controller.DocsController = function($scope, $location, $window, $cookie
angular.element(document.getElementById('disqus_thread')).html(''); angular.element(document.getElementById('disqus_thread')).html('');
} }
} };
angular.module('docsApp', ['ngResource', 'ngCookies', 'ngSanitize', 'bootstrap', 'bootstrapPrettify']). angular.module('docsApp', ['ngResource', 'ngCookies', 'ngSanitize', 'bootstrap', 'bootstrapPrettify']).