Skip to content

Commit d7fae8e

Browse files
rjametchristopherthielen
authored andcommitted
cleanup($templateFactory): Fix linter warnings.
1 parent 7f1dec0 commit d7fae8e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/templateFactory.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* use, and will default to the most recent one ($templateRequest on Angular
99
* versions starting from 1.3, $http otherwise).
1010
*/
11-
function $TemplateFactoryProvider() {
11+
function TemplateFactoryProvider() {
1212
var shouldUnsafelyUseHttp = angular.version.minor < 3;
1313

1414
/**
@@ -45,7 +45,7 @@ function $TemplateFactoryProvider() {
4545
* Service. Manages loading of templates.
4646
*/
4747
this.$get = ['$http', '$templateCache', '$injector', function($http, $templateCache, $injector){
48-
return new $TemplateFactory($http, $templateCache, $injector, shouldUnsafelyUseHttp);}];
48+
return new TemplateFactory($http, $templateCache, $injector, shouldUnsafelyUseHttp);}];
4949
}
5050

5151

@@ -60,7 +60,7 @@ function $TemplateFactoryProvider() {
6060
* @description
6161
* Service. Manages loading of templates.
6262
*/
63-
function $TemplateFactory($http, $templateCache, $injector, shouldUnsafelyUseHttp) {
63+
function TemplateFactory($http, $templateCache, $injector, shouldUnsafelyUseHttp) {
6464

6565
/**
6666
* @ngdoc function
@@ -161,6 +161,6 @@ function $TemplateFactory($http, $templateCache, $injector, shouldUnsafelyUseHtt
161161
this.fromProvider = function (provider, params, locals) {
162162
return $injector.invoke(provider, null, locals || { params: params });
163163
};
164-
};
164+
}
165165

166-
angular.module('ui.router.util').provider('$templateFactory', $TemplateFactoryProvider);
166+
angular.module('ui.router.util').provider('$templateFactory', TemplateFactoryProvider);

0 commit comments

Comments
 (0)