Skip to content

Instantly share code, notes, and snippets.

Created August 5, 2013 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7c3cf8b5ff750d68175c to your computer and use it in GitHub Desktop.
Save anonymous/7c3cf8b5ff750d68175c to your computer and use it in GitHub Desktop.
resolvePromise: function (promise, q, scope){
var defer = q.defer();
var unproxiedPromise;
promise.then(function(value){
unproxiedPromise = value;
});
defer.resolve();
scope.$apply();
return unproxiedPromise;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment