classes: fixes to buying items

This commit is contained in:
Tyler Renelle
2013-12-04 23:10:14 -07:00
parent 5fea978e6b
commit 62d50a1f4d
3 changed files with 4 additions and 4 deletions

View File

@@ -116,7 +116,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User', '
$scope.buy = function(type) {
var hasEnough = window.habitrpgShared.items.buyItem(User.user, type);
if (hasEnough) {
User.log({op: "buy",type: type});
User.log({op: "buy", type: type});
Notification.text("Item purchased.");
updateStore();
} else {