dist/wild-angular.js
function(profile) {
      var user = this.getUser();
      if (user) {
        return this._q.when(user.updateProfile(profile));
      } else {
        return this._q.reject("Cannot update profile since there is no logged in user.");
      }
    }
function(profile) {
      var user = this.getUser();
      if (user) {
        return this._q.when(user.updateProfile(profile));
      } else {
        return this._q.reject("Cannot update profile since there is no logged in user.");
      }
    }
function ( profile ) { var user = this . getUser ( ) ; if ( user ) { return this . _q . when ( user . updateProfile ( profile ) ) ; } else { return this . _q . reject ( "Cannot update profile since there is no logged in user." ) ; } }
Changes the profile for an user.

@param {string} profile A new profile for the current user.
@return {Promise<>} An empty promise fulfilled once the profile change is complete.
Changes the profile for an user .