Skip to content

Commit

Permalink
style(benchmarks): fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Narretz committed Aug 8, 2016
1 parent b58a7f8 commit 4fe0987
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions benchmarks/bootstrap-compile-bp/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var app = angular.module('boostrapCompileBenchmark', []);

var commentDirectivesEnabled;
Expand All @@ -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;
Expand All @@ -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));
};

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

});


8 changes: 6 additions & 2 deletions benchmarks/bootstrap-compile-bp/bp.conf.js
Original file line number Diff line number Diff line change
@@ -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'
}]
});
};

0 comments on commit 4fe0987

Please sign in to comment.