Skip to content

Instantly share code, notes, and snippets.

@kjelelokk
Created November 29, 2012 11:45
Show Gist options
  • Save kjelelokk/4168437 to your computer and use it in GitHub Desktop.
Save kjelelokk/4168437 to your computer and use it in GitHub Desktop.
Dojo deffered
var deffered = xhr.get({
url: '/getSomePage'
});
deffered.then(function (result) {
result.property = 'Something more';
return result;
}).then(function (resultWithObjectProperty) {
// Gjør noe
}, function (err) {
// Håndter feil
}).then(function () {
// Gjør noe
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment