mirror of
https://github.com/correl/melpa.git
synced 2025-01-03 19:17:26 +00:00
Mark unused vars as safe where appropriate
This commit is contained in:
parent
9def9ba1f4
commit
5c8491c2c6
1 changed files with 2 additions and 0 deletions
|
@ -155,6 +155,7 @@
|
||||||
$scope.hideSplash = ($route.current.controller != 'PackageListCtrl');
|
$scope.hideSplash = ($route.current.controller != 'PackageListCtrl');
|
||||||
});
|
});
|
||||||
$rootScope.$on("$locationChangeSuccess", function(e, newURL, oldURL) {
|
$rootScope.$on("$locationChangeSuccess", function(e, newURL, oldURL) {
|
||||||
|
//jshint unused: false
|
||||||
if (newURL && (newURL.$$route||newURL).redirectTo) return;
|
if (newURL && (newURL.$$route||newURL).redirectTo) return;
|
||||||
if ($window._gaq && newURL != (oldURL + "#/")) {
|
if ($window._gaq && newURL != (oldURL + "#/")) {
|
||||||
var l = $window.location;
|
var l = $window.location;
|
||||||
|
@ -176,6 +177,7 @@
|
||||||
transclude: true,
|
transclude: true,
|
||||||
link: function(scope) {
|
link: function(scope) {
|
||||||
$rootScope.$on("$routeChangeError", function (event, current, previous, rejection) {
|
$rootScope.$on("$routeChangeError", function (event, current, previous, rejection) {
|
||||||
|
//jshint unused: false
|
||||||
scope.routeError = rejection;
|
scope.routeError = rejection;
|
||||||
});
|
});
|
||||||
$rootScope.$on("$routeChangeSuccess", function () {
|
$rootScope.$on("$routeChangeSuccess", function () {
|
||||||
|
|
Loading…
Reference in a new issue