I have a real show-stopper using a remote procedure call. In fact the problem arises using a deferred call of any kind, as evidenced in this example. Here is a class that initializes its properties using a deferred call:
dojo.declare("Foo", null {
bar: null,
constructor: function () {
var deferred = new dojo.Deferred();
deferred.addCallback(gitterdun);
deferred.callback("Hello World!");
},
gitterdun: function(baz) { this.bar = baz; return baz; }
}
...Now, I can require that class, and new one in page head as follows:
