From 01180416ef2798bb0302379dbdaf27f62a47e194 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Fri, 28 Feb 2014 22:42:27 -0700 Subject: [PATCH] fix(ui-router): upgraded angular-ui-router, $anchorScroll no longer supported. See https://github.com/angular-ui/ui-router/pull/715 for autoscroll attribute if we need to enable/disable ui-view autoscrolling in certain locations (cc @paglias) --- public/js/app.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index ef55bb10d4..2e560d2502 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -5,10 +5,6 @@ window.habitrpg = angular.module('habitrpg', 'authServices', 'notificationServices', 'guideServices', 'authCtrl', 'ui.bootstrap', 'ui.keypress', 'ui.router', 'chieffancypants.loadingBar', 'At', 'pasvaz.bindonce', 'infinite-scroll', 'ui.select2']) - // @see https://github.com/angular-ui/ui-router/issues/110 and https://github.com/HabitRPG/habitrpg/issues/1705 - // temporary hack until they have a better solution - .value('$anchorScroll', angular.noop) - .constant("API_URL", "") .constant("STORAGE_USER_ID", 'habitrpg-user') .constant("STORAGE_SETTINGS_ID", 'habit-mobile-settings') @@ -209,7 +205,6 @@ window.habitrpg = angular.module('habitrpg', return response; } function error(response) { - debugger; // Offline if (response.status == 0 || // don't know why we're getting 404 here, should be 0