Skip to content

Instantly share code, notes, and snippets.

@raytiley
Created July 16, 2013 14:34
Show Gist options
  • Save raytiley/6009300 to your computer and use it in GitHub Desktop.
Save raytiley/6009300 to your computer and use it in GitHub Desktop.
var deferred = Ember.Deferred.create(),
testObj = {test: 'testing'};
deferred.then(
function() {
return testObj;
})
.then(
function(test) {
console.log(test);
});
deferred.resolve();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment