Skip to content

Instantly share code, notes, and snippets.

@patrickarlt
Created February 17, 2014 19:33
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 patrickarlt/9057332 to your computer and use it in GitHub Desktop.
Save patrickarlt/9057332 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
</head>
<body>
<script src="dojo/dojo.js.uncompressed.js"></script>
<script>
require(["dojo/Deferred"], function(Deferred){
var deferred = new Deferred();
deferred.then(function(value){
fakeObject2.fakeProperty = value; // doesn't throw an exception, why?
}, function(err){
console.log(err);
});
deferred.resolve("value");
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment