Skip to content

Instantly share code, notes, and snippets.

@khades
Last active April 7, 2016 08:10
Show Gist options
  • Save khades/b2711d03f676483e032910624a289132 to your computer and use it in GitHub Desktop.
Save khades/b2711d03f676483e032910624a289132 to your computer and use it in GitHub Desktop.
this.user = {
blizzId: m.prop(""),
steamId: m.prop(""),
skype: m.prop(""),
vk: m.prop(""),
userName: m.prop("")
};
m.request({
method: "GET",
url: "/api/personalInfo"
}).then(function(user) {
this.user.blizzId(user.blizzId);
this.user.steamId(user.steamId);
this.user.skype(user.skype);
this.user.vk(user.vk);
this.user.userName(user.userName);
}.bind(this))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment