Created
November 29, 2012 11:45
-
-
Save kjelelokk/4168437 to your computer and use it in GitHub Desktop.
Dojo deffered
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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