From 5c8491c2c658ea06098639d6bdbd576536f04bd7 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Sat, 28 Sep 2013 08:26:03 +0100 Subject: [PATCH] Mark unused vars as safe where appropriate --- html/js/melpa.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/js/melpa.js b/html/js/melpa.js index eb8046ec..47ff9d7e 100644 --- a/html/js/melpa.js +++ b/html/js/melpa.js @@ -155,6 +155,7 @@ $scope.hideSplash = ($route.current.controller != 'PackageListCtrl'); }); $rootScope.$on("$locationChangeSuccess", function(e, newURL, oldURL) { + //jshint unused: false if (newURL && (newURL.$$route||newURL).redirectTo) return; if ($window._gaq && newURL != (oldURL + "#/")) { var l = $window.location; @@ -176,6 +177,7 @@ transclude: true, link: function(scope) { $rootScope.$on("$routeChangeError", function (event, current, previous, rejection) { + //jshint unused: false scope.routeError = rejection; }); $rootScope.$on("$routeChangeSuccess", function () {