Linting fixes

This commit is contained in:
Colin McLeod
2015-06-03 01:14:38 -07:00
parent 799ff36ec4
commit 10bfaacb22
3 changed files with 4 additions and 4 deletions

View File

@@ -49,8 +49,8 @@ angular.module('app', ['ui.router', 'ct.ui.router.extras.sticky', 'ui.sortable',
if ($window.applicationCache) { if ($window.applicationCache) {
// Listen for appcache updated event, present refresh to update view // Listen for appcache updated event, present refresh to update view
$window.applicationCache.addEventListener('updateready', function(e) { $window.applicationCache.addEventListener('updateready', function() {
if (window.applicationCache.status == window.applicationCache.UPDATEREADY) { if ($window.applicationCache.status == $window.applicationCache.UPDATEREADY) {
// Browser downloaded a new app cache. // Browser downloaded a new app cache.
$rootScope.appCacheUpdate = true; $rootScope.appCacheUpdate = true;
$rootScope.$apply(); $rootScope.$apply();

View File

@@ -165,7 +165,7 @@ angular.module('app').controller('OutfitController', ['$window','$rootScope','$s
$scope.fuelChange = function (fuel) { $scope.fuelChange = function (fuel) {
$scope.fuel = fuel; $scope.fuel = fuel;
angular.element($window).triggerHandler('render'); angular.element($window).triggerHandler('render');
} };
// Utilify functions // Utilify functions
function updateState() { function updateState() {

View File

@@ -16,7 +16,7 @@ angular.module('app').directive('areaChart', ['$window', function ($window) {
fmtLong = d3.format('.2f'), fmtLong = d3.format('.2f'),
// Define Axes // Define Axes
xAxis = d3.svg.axis().outerTickSize(0).orient("bottom").tickFormat(d3.format('.2r')), xAxis = d3.svg.axis().outerTickSize(0).orient("bottom").tickFormat(d3.format('.2r')),
yAxis = d3.svg.axis().outerTickSize(0).orient("left").tickFormat(fmt) yAxis = d3.svg.axis().outerTickSize(0).orient("left").tickFormat(fmt),
x = d3.scale.linear(), x = d3.scale.linear(),
y = d3.scale.linear(); y = d3.scale.linear();