Vote count:
0
I have the following code:
this._communicate = function (font) {
var self = this;
request
(REGISTRYENDPOINT + font, function (e, r, b) {
self._routeCommunicationResponse(e, r, b);
self.getCommunicationResponse(); // 1
});
this.getCommunicationResponse() // undefined
};
As you can see, my object's scope doesn't know that getCommunicationScope() has its value.
The question is: how can I pass something from request's function to my object?
asked 48 secs ago
Backward chaining on Lexical Scope
Aucun commentaire:
Enregistrer un commentaire