style(benchmarks): fix eslint errors

This commit is contained in:
Martin Staffa
2016-08-08 11:33:37 +02:00
parent b58a7f8a12
commit 4fe0987966
2 changed files with 10 additions and 6 deletions
+4 -4
View File
@@ -1,3 +1,5 @@
'use strict';
var app = angular.module('boostrapCompileBenchmark', []);
var commentDirectivesEnabled;
@@ -13,7 +15,7 @@ app.config(function($compileProvider) {
.commentDirectivesEnabled(commentDirectivesEnabled)
.cssClassDirectivesEnabled(cssClassDirectivesEnabled);
})
.controller('DataController', function($compile, $http, $rootScope) {
.controller('DataController', function DataController($compile, $http, $rootScope) {
this.isEA = !commentDirectivesEnabled && !cssClassDirectivesEnabled;
this.isEAC = !commentDirectivesEnabled && cssClassDirectivesEnabled;
@@ -30,7 +32,7 @@ app.config(function($compileProvider) {
this.html = null;
this.loadTemplate = function() {
this.html = null;
$http.get(location.pathname + this.selectedTemplate)
$http.get(window.location.pathname + this.selectedTemplate)
.then(function(response) { this.html = response.data; }.bind(this));
};
@@ -57,5 +59,3 @@ app.config(function($compileProvider) {
});
});
+6 -2
View File
@@ -1,11 +1,15 @@
/* eslint-env node */
'use strict';
module.exports = function(config) {
config.set({
scripts: [ {
scripts: [{
id: 'angular',
src: '/build/angular.js'
},
{
src: 'app.js',
src: 'app.js'
}]
});
};