"use strict"; habitrpg.controller("UserAvatarCtrl", ['$scope', '$location', 'User', function($scope, $location, User) { $scope.profile = User.user; $scope.hideUserAvatar = function() { $(".userAvatar").hide(); }; $scope.toggleHelm = function(val){ User.log({op:'set', data:{'preferences.showHelm':val}}); } }]);