Remove unused v2 code from /website/common/script (#8034)

* remove apiv2 behavior from ops

* remove apiv2 behavior from fns
This commit is contained in:
Kaitlin Hipkin
2016-09-22 22:23:46 -04:00
committed by Blade Barringer
parent 8f9ed6e377
commit 5f0c1687b5
42 changed files with 130 additions and 333 deletions

View File

@@ -65,7 +65,7 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$
if (fullSet) {
if (confirm(window.env.t('purchaseFor',{cost:cost*4})) !== true) return;
if (User.user.balance < cost) return $rootScope.openModal('buyGems');
} else if (!User.user.fns.dotGet('purchased.' + path)) {
} else if (!_.get(user, 'purchased.' + path)) {
if (confirm(window.env.t('purchaseFor',{cost:cost*4})) !== true) return;
if (User.user.balance < cost) return $rootScope.openModal('buyGems');
}