Skip to content

Instantly share code, notes, and snippets.

@gtyanchev
Last active August 29, 2015 14:13
Show Gist options
  • Save gtyanchev/f3f6a382399f9af91bb4 to your computer and use it in GitHub Desktop.
Save gtyanchev/f3f6a382399f9af91bb4 to your computer and use it in GitHub Desktop.
pyramid_of_doom.js
Users.login(
username,
password,
function () {
usersModel.load(
function () {
App.navigate('profile.html',
function () {
alert("You've logged in!");
},
function (err) {
showError(err.message);
});
},
function (err) {
showError(err.message);
});
},
function (err) {
showError(err.message);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment