Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit d2a57b9

Browse files
Narretzgkalpak
authored andcommitted
style(benchmarks): fix eslint errors
1 parent 33a693e commit d2a57b9

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

benchmarks/bootstrap-compile-bp/app.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
var app = angular.module('boostrapCompileBenchmark', []);
24

35
var commentDirectivesEnabled;
@@ -13,7 +15,7 @@ app.config(function($compileProvider) {
1315
.commentDirectivesEnabled(commentDirectivesEnabled)
1416
.cssClassDirectivesEnabled(cssClassDirectivesEnabled);
1517
})
16-
.controller('DataController', function($compile, $http, $rootScope) {
18+
.controller('DataController', function DataController($compile, $http, $rootScope) {
1719

1820
this.isEA = !commentDirectivesEnabled && !cssClassDirectivesEnabled;
1921
this.isEAC = !commentDirectivesEnabled && cssClassDirectivesEnabled;
@@ -30,7 +32,7 @@ app.config(function($compileProvider) {
3032
this.html = null;
3133
this.loadTemplate = function() {
3234
this.html = null;
33-
$http.get(location.pathname + this.selectedTemplate)
35+
$http.get(window.location.pathname + this.selectedTemplate)
3436
.then(function(response) { this.html = response.data; }.bind(this));
3537
};
3638

@@ -57,5 +59,3 @@ app.config(function($compileProvider) {
5759
});
5860

5961
});
60-
61-
+6-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
/* eslint-env node */
2+
3+
'use strict';
4+
15
module.exports = function(config) {
26
config.set({
3-
scripts: [ {
7+
scripts: [{
48
id: 'angular',
59
src: '/build/angular.js'
610
},
711
{
8-
src: 'app.js',
12+
src: 'app.js'
913
}]
1014
});
1115
};

0 commit comments

Comments
 (0)