classes: small tweaks

This commit is contained in:
Tyler Renelle
2013-12-07 11:31:11 -07:00
parent c51cdd0849
commit 59f8727cbf
4 changed files with 6 additions and 3 deletions

View File

@@ -23,6 +23,7 @@ angular.module('userServices', []).
//first we populate user with schema
_.extend(user, $window.habitrpgShared.helpers.newUser());
user.apiToken = user._id = ''; // we use id / apitoken to determine if registered
$window.habitrpgShared.algos.defineComputed(user);
//than we try to load localStorage
if (localStorage.getItem(STORAGE_USER_ID)) {